Hello. I have created a new role of the user, for example, “myCustomRole”. When i try to create a user with this role via REST API, i got error. But other default roles like a “user” or “leader” process without any errors, the problem only with my cutom roles.
curl -H "X-Auth-Token: <...>" \
-H "X-User-Id: <...>" \
-H "Content-type:application/json" \
http://localhost:3000/api/v1/users.create \
-d '{"name": "test", "email": "test@mail.ru", "password": "password", "username": "username", "roles":["myCustomRole"]}'
error:
{"success":false,"error":"The field Roles consist invalid role id [error-action-not-allowed]","errorType":"error-action-not-allowed","details":{"method":"insertOrUpdateUser","action":"Assign_role"}}