OpenapiPermission
Assign roles to user
Assigns one or more roles to a user
POST
Assigns one or more roles to a user
userId*stringUser ID
Format
uuidapplication/json- body
roleIds*array<>Roles assigned successfully
application/json- response
roles*array<>curl -X POST 'https://example.com/api/permission/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/roles' \
-H 'Content-Type: application/json' \
-d '{
"roleIds": [
"10960216-a894-4481-b8f2-270c1c8fab34"
]
}'Example Response
{
"roles": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"realmId": "string"
}
]
}