1

Access Denied (Error code 7) Issue When Creating Account

(edited by arsalanqayum332 16/09/2020 20:25:38)

Topic: Access Denied (Error code 7) Issue When Creating Account

Hi there,

I am trying to create account using the API from a Laravel web app project.

URL: https://hst-api.wialon.us/wialon/ajax.h … ;sid=mysid

Method: Post

Parms: params: {"creatorId":"123456789","name":"test2221134234","skipCreatorCheck":0,"dataFlags":5}


Response:

{"item":{"nm":"test2221134234","cls":3,"id":123456789,"crt":123456789,"bact":123456789,"mu":1,"bpact":123456789,"uacl":12345678901234},"flags":5}

Then I pass resource id: 123456789 to the create account API to create account as shown below.

URL: https://hst-api.wialon.us/wialon/ajax.h … ;sid=mysid

Method: Post

params: {"itemId":123456789,"plan":"mypaymentplan-1y"}

Response: {"error":7}

Which is access denied error.

Can anyone here please give me directions which level of access is getting denied for this scenario? The token I am using is working to create/delete units and users.

Just to be clear. I have given full access to the user after creating one.

In case my query is not yet clear, Please let me know, and I will try to provide more details. Thanks in advance!

2

Access Denied (Error code 7) Issue When Creating Account

Re: Access Denied (Error code 7) Issue When Creating Account

Hello!

As I see the issue with tokens access - please recheck that you login with Unlimited token to manage accounts, access_type=-1  ( https://sdk.wialon.com/wiki/en/sidebar/ … ogin/login )

PS it's better not provide account/user id's in public post, you can always send more private information via PM messages for me.

Diana Cheley
Wialon Hosting Expert
Gurtam
3

Access Denied (Error code 7) Issue When Creating Account

Re: Access Denied (Error code 7) Issue When Creating Account

Hi Diana!

Thank you so much for your assistance. We created woken with the full access, and It did the work super nice. 

I have updated my query and put dummy ids, etc.

Much thanks again.

Kind Regards