1

Checking if account name and user name are globally unique

(31/01/2017 18:40:30 отредактировано m-ram)

Тема: Checking if account name and user name are globally unique

Hi All,
I noticed that the create_user  and create_resource APIs will fail if the name parameter supplied is not unique across all Wialon accounts. Is there a way to check the uniqueness of a user name or resource name across all Wialon accounts? I tried using search_items API before calling  create_resource or   create_user, but it only checks the uniqueness in the account for which the session ID used in search_items API call was generated.

2

Checking if account name and user name are globally unique

Re: Checking if account name and user name are globally unique

m-ram, You can't get user names and account names outside Your account tree. You only can try to create such user or account and if such unique name is already occupied You'll get code 1002.

Head of Wialon Local Department
Gurtam
3

Checking if account name and user name are globally unique

Re: Checking if account name and user name are globally unique

Hi All,

When I am trying to create new user with the following SVC :

svc=core/create_user&params={"creatorId":<long>,
                 "name":<text>,
                 "password":<text>,
                 "dataFlags":<uint>}

I am getting the Error code: 6 (Unknown Error). If I am trying to create user with same data after some time it was working fine. Can you please tell me what are all the different cases to get this error code 6.

Thanks.

4

Checking if account name and user name are globally unique

Re: Checking if account name and user name are globally unique

ramesh, there could be some server problems or maintenance.
Do you experience problems with creating users now?

Head of Wialon Local Department
Gurtam
5

Checking if account name and user name are globally unique

Re: Checking if account name and user name are globally unique

Thanks Deal.

I am not facing this issue as frequently. It is occurred on some time. On second try it is working fine.

If I get Error code 6 then it is always a maintenance issue or is there any other cases?

6

Checking if account name and user name are globally unique

Re: Checking if account name and user name are globally unique

ramesh, specify please user name you tried to create and approximate time of request - we can watch logs and try to find out the reason of such problems.

Head of Wialon Local Department
Gurtam