Path: / admin / realms / {realm} / oauth-clients-by-id / {clientId} / scope-mappings / applications-by-id / {appId}

Get the roles associated with a client's scope for a specific application.

Path parameters:
realm - realm name (not id!)
clientId - oauth client's clientId
appId -

Sub-Resources
Resources
NameDescription
availableThe available application-level roles that can be associated with the client's scope
compositeGet effective application roles that are associated with the client's scope for a specific application.

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}Get the roles associated with a client's scope for a specific application.
POST /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}Add application-level roles to the client's scope
DELETE /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}Remove application-level roles from the client's scope.

Method Detail

GET /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}

Get the roles associated with a client's scope for a specific application.

HTTP Example:
GET /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}
API Example:

ScopeMappedApplicationResource.getApplicationScopeMappings({'realm': /* name realm name (not id!) */,
  'clientId': /* clientId oauth client's clientId */,
  'appId': …});

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

POST /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}

Add application-level roles to the client's scope

HTTP Example:
POST /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}
API Example:

ScopeMappedApplicationResource.addApplicationScopeMapping({'realm': /* name realm name (not id!) */,
  'clientId': /* clientId oauth client's clientId */,
  'appId': …,
  '$entity': /* roles */});

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

DELETE /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}

Remove application-level roles from the client's scope.

HTTP Example:
DELETE /admin/realms/{realm}/oauth-clients-by-id/{clientId}/scope-mappings/applications-by-id/{appId}
API Example:

ScopeMappedApplicationResource.deleteApplicationScopeMapping({'realm': /* name realm name (not id!) */,
  'clientId': /* clientId oauth client's clientId */,
  'appId': …,
  '$entity': /* roles */});

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