Menu
List Users Role Mappings By User Id
List users role mappings by user id
GET
/admin/realms/{realm}/users/{user-id}/role-mappingsUse it in a workflow
- Add a step and choose the Keycloak connector.
- Pick the List Users Role Mappings By User Id action (under Role Mapper).
- Fill in the fields below, then reference the result from later steps as
{{listUsersRoleMappingsByUserId.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{listUsersRoleMappingsByUserId.response.data.<field>}}.
{
"realmMappings": [
{
"id": "string",
"name": "string",
"description": "string",
"scopeParamRequired": false,
"composite": false,
"composites": {
"realm": [
"string"
],
"client": {},
"application": {}
},
"clientRole": false,
"containerId": "string",
"attributes": {}
}
],
"clientMappings": {}
}
Need more? See the Keycloak guide for connection setup and behaviour shared by every action.
Was this page helpful?