API create user

Michelea year ago

I need create a user by api.
I use basic authentication with my account "manager", not administrator.

Error:

Administrator access required - SecurityException (PermissionsService: 78 < *: 168 < UserResource: 77 < ...)
Anton Tananaeva year ago

And the request is?

Michelea year ago

Is there an error in the code?

Anton Tananaeva year ago

I'm asking to provide the API request that you're sending.

Michelea year ago

POST http://localhost:8082/api/users
basic auth - email/password manager

{
"id": 0,
"name": "string",
"email": "string",
"phone": "string",
"readonly": true,
"administrator": true,
"map": "string",
"latitude": 0,
"longitude": 0,
"zoom": 0,
"password": "string",
"twelveHourFormat": true,
"coordinateFormat": "string",
"disabled": true,
"expirationTime": "2019-08-24T14:15:22Z",
"deviceLimit": 0,
"userLimit": 0,
"deviceReadonly": true,
"limitCommands": true,
"poiLayer": "string",
"attributes": { }
}
Anton Tananaeva year ago
"administrator": true,

You want to create an admin user without admin permissions?