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 \
-X POST https://[tenant_id].logto.app/api/roles/{id}/users \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"userIds":["string"]}'
Request examples
{
"userIds": [
"string"
]
}