API create user

Michele 3 years 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 Tananaev 3 years ago

And the request is?

Michele 3 years ago

Is there an error in the code?

Anton Tananaev 3 years ago

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

Michele 3 years 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 Tananaev 3 years ago
"administrator": true,

You want to create an admin user without admin permissions?