Get a user's realm roles
keycloak_user_roles_getLists the realm-level roles currently assigned to a user. Use this to review role assignments before granting or revoking roles.
Instructions
Read-only: lists the realm-level roles currently assigned to a single user (not client roles). Use this to inspect a user's realm role assignments before granting one with keycloak_user_role_assign or revoking one with keycloak_user_role_unassign; for client-scoped assignments use keycloak_user_client_roles_get. Returns a JSON array of roles, each with id, name, and description.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | The Keycloak user ID (the user's UUID, e.g. 'f47ac10b-58cc-4372-a567-0e02b2c3d479'), not the username. Identifies the user whose realm roles are listed. |