User

Get available roles

Returns the list of roles the current user can assign when creating or updating another user. Each role carries the descriptor shape { name, displayName, priority, isSystem } and the list is sorted by priority DESC.

GET
/api/v2/users/available-roles

Authorization

BearerAuthObject
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v2/users/available-roles"
{  "data": [    {      "name": "Administrator",      "displayName": "Administrator",      "priority": 600,      "isSystem": true    }  ]}
Empty
Empty