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

Get realm-level role mappings for this user

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

Resources
NameDescription
availableRealm-level roles that can be mapped to this user
compositeEffective realm-level role mappings for this user.

Method Summary
ResourceDescription
GET /admin/realms/{realm}/users/{username}/role-mappings/realmGet realm-level role mappings for this user
POST /admin/realms/{realm}/users/{username}/role-mappings/realmAdd realm-level role mappings
DELETE /admin/realms/{realm}/users/{username}/role-mappings/realmDelete realm-level role mappings

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

Get realm-level role mappings for this user

Output:
List<RoleRepresentation> -
Produces:
application/json
HTTP Example:
POST /admin/realms/{realm}/users/{username}/role-mappings/realm

Add realm-level role mappings

Input:
List<RoleRepresentation>
Output:
void
Consumes:
application/json
HTTP Example:
DELETE /admin/realms/{realm}/users/{username}/role-mappings/realm

Delete realm-level role mappings

Input:
List<RoleRepresentation>
Output:
void
Consumes:
application/json