remove-role-from-user
Remove a realm role or client role from a user in Keycloak by providing realm, user ID, role name, and optional client ID for client roles.
Instructions
Remove a realm role, or a client role when clientId is given, from a user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| userId | Yes | User ID | |
| clientId | No | Client ID to resolve roleName as a client role. Omit for a realm role | |
| roleName | Yes | Role name |