Users

Assign Role

Assign a role to a user.

Required role: org_admin or system_admin

post/api/v1/users/{user_id}/roles

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Path parameters

user_idstring required

Headers

X-API-Keystring nullable

Request body

role_idstring required
scope_typestring required
scope_idstring nullable
expires_atstring date-time nullable
granted_reasonstring nullable

Response

Successful Response

idstring required
user_idstring required
role_idstring required
role_namestring required
scope_typestring required
scope_idstring nullable required
granted_bystring nullable required
granted_atstring date-time required
expires_atstring date-time nullable required
is_activeboolean required

Changes

No recorded changes to this operation across all 2 revisions of this API.