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

Get realm-level role mappings for this user

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

Sub-Resources

  Resources
  Name | Description
  --- | ---
  available | Realm-level roles that can be mapped to this user
  composite | Effective realm-level role mappings for this user.

Resource Methods

  Method Summary
  Name | Description
  --- | ---
  `GET /admin/realms/{realm}/users/{username}/role-mappings/realm` | Get realm-level role mappings for this user
  `POST /admin/realms/{realm}/users/{username}/role-mappings/realm` | Add realm-level role mappings
  `DELETE /admin/realms/{realm}/users/{username}/role-mappings/realm` | Delete realm-level role mappings

Method Detail
### GET /admin/realms/{realm}/users/{username}/role-mappings/realm Get realm-level role mappings for this user
  HTTP Example:
      GET /admin/realms/{realm}/users/{username}/role-mappings/realm
| API Example: `UsersResource.getRealmRoleMappings({'realm': /* name realm name (not id!) */, 'username': /* username username (not id!) */});`
Output: `List<RoleRepresentation>` - Produces: application/json
### POST /admin/realms/{realm}/users/{username}/role-mappings/realm Add realm-level role mappings
  HTTP Example:
      POST /admin/realms/{realm}/users/{username}/role-mappings/realm
| API Example: `UsersResource.addRealmRoleMappings({'realm': /* name realm name (not id!) */, 'username': /* username username (not id!) */, '$entity': /* roles */});`
Input: `List<RoleRepresentation>` Output: `void` Consumes: application/json
### DELETE /admin/realms/{realm}/users/{username}/role-mappings/realm Delete realm-level role mappings
  HTTP Example:
      DELETE /admin/realms/{realm}/users/{username}/role-mappings/realm
| API Example: `UsersResource.deleteRealmRoleMappings({'realm': /* name realm name (not id!) */, 'username': /* username username (not id!) */, '$entity': /* roles */});`
Input: `List<RoleRepresentation>` Output: `void` Consumes: application/json