capabilities.work

Check if a user holds any of given roles

One step with dotCMS. We can help you get access.

Look something up

Check if a user holds any of given roles

with dotCMS · Identity & Access Management

Use dotCMS: its dotCMS REST Roles API lets you check if a user holds any of given roles in a single step (GET /api/v1/roles/checkuserroles/userid/{userId}/roleids/{roleIds}). capabilities.work can help you get signed up and connected.

  • Does this user belong to at least one of these roles?
  • How can I verify a user's role membership against a list of role ids?
Say it to your AI assistant
  • Check whether user {userId} has any of the roles {roleIds}.
  • Verify {userId} is assigned one of {roleIds}.
For your developer

GET /api/v1/roles/checkuserroles/userid/{userId}/roleids/{roleIds} in dotCMS REST Roles API. Full spec on APIs.io.