v1
latestOpenAPI 3.0.32026-07-24148824715.6 KBUsers
Assign user roles
Set the roles of a user in an account.
You need the "Assign roles in account" permission to use this endpoint.
put/v2/users/{user_identifier}/roles
Path parameters
user_identifierstring uuid required
The identifier of the user who the roles will be assigned to.
Request body
Example request
{
"account_identifier": "00000000-0000-0000-0000-000000000000",
"role_identifiers": [
"00000000-0000-0000-0000-000000000000"
]
}Response
OK
Example response
{
"identifier": "00000000-0000-0000-0000-000000000000",
"roles": [
{
"assigned_at": "2023-01-01T10:10:10.000Z",
"name": "Admin",
"user_role_identifier": "00000000-0000-0000-0000-000000000000"
}
]
}