Path: / admin / realms / {realm} / users / {username} / role-mappings / applications-by-id / {appId}

Get application-level role mappings for this user for a specific app

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

Sub-Resources
Resources
NameDescription
availableGet available application-level roles that can be mapped to the user
compositeGet effective application-level role mappings.

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}Get application-level role mappings for this user for a specific app
POST /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}Add application-level roles to the user role mapping.
DELETE /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}Delete application-level roles from user role mapping.

Method Detail

GET /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}

Get application-level role mappings for this user for a specific app

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

UserApplicationRoleMappingsResource.getApplicationRoleMappings({'realm': /* name realm name (not id!) */,
  'username': …,
  'appId': …});

Output:
List<RoleRepresentation> -
Produces:
application/json

POST /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}

Add application-level roles to the user role mapping.

HTTP Example:
POST /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}
API Example:

UserApplicationRoleMappingsResource.addApplicationRoleMapping({'realm': /* name realm name (not id!) */,
  'username': …,
  'appId': …,
  '$entity': /* roles */});

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

DELETE /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}

Delete application-level roles from user role mapping.

HTTP Example:
DELETE /admin/realms/{realm}/users/{username}/role-mappings/applications-by-id/{appId}
API Example:

UserApplicationRoleMappingsResource.deleteApplicationRoleMapping({'realm': /* name realm name (not id!) */,
  'username': …,
  'appId': …,
  '$entity': /* roles */});

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