Assign role to users
Assign a role to a list of users. The role must have the type User
.
Path parameters
-
The unique identifier of the role.
POST
/api/roles/{id}/users
curl \
--request POST https://[tenant_id].logto.app/api/roles/{id}/users \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"userIds":["string"]}'
Request examples
{
"userIds": [
"string"
]
}