Path: / admin / realms / {realm} / users / {username} / role-mappings

Get role mappings for this user

Path parameters:
realm - realm name (not id!)
username - username (not id!)

Sub-Resources
Resources
NameDescription
applications
applications/{app}
Get application-level role mappings for this user for a specific app
applications-by-id
applications-by-id/{appId}
Get application-level role mappings for this user for a specific app
realmGet realm-level role mappings for this user

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/users/{username}/role-mappingsGet role mappings for this user

Method Detail

GET /admin/realms/{realm}/users/{username}/role-mappings

Get role mappings for this user

HTTP Example:
GET /admin/realms/{realm}/users/{username}/role-mappings
API Example:

UsersResource.getRoleMappings({'realm': /* name realm name (not id!) */,
  'username': /* username username (not id!) */});

Output:
MappingsRepresentation -
Produces:
application/json