Class ClientRoleMappingsResource

java.lang.Object
org.keycloak.services.resources.admin.ClientRoleMappingsResource

public class ClientRoleMappingsResource extends Object
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

  • Method Details

    • getClientRoleMappings

      @GET @Produces("application/json") public Stream<org.keycloak.representations.idm.RoleRepresentation> getClientRoleMappings()
      Get client-level role mappings for the user, and the app
      Returns:
    • getCompositeClientRoleMappings

      @Path("composite") @GET @Produces("application/json") public Stream<org.keycloak.representations.idm.RoleRepresentation> getCompositeClientRoleMappings(@QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
      Get effective client-level role mappings This recurses any composite roles
      Parameters:
      briefRepresentation - if false, return roles with their attributes
      Returns:
    • getAvailableClientRoleMappings

      @Path("available") @GET @Produces("application/json") public Stream<org.keycloak.representations.idm.RoleRepresentation> getAvailableClientRoleMappings()
      Get available client-level roles that can be mapped to the user or group
      Returns:
    • addClientRoleMapping

      @POST @Consumes("application/json") public void addClientRoleMapping(List<org.keycloak.representations.idm.RoleRepresentation> roles)
      Add client-level roles to the user or group role mapping
      Parameters:
      roles -
    • deleteClientRoleMapping

      @DELETE @Consumes("application/json") public void deleteClientRoleMapping(List<org.keycloak.representations.idm.RoleRepresentation> roles)
      Delete client-level roles from user or group role mapping
      Parameters:
      roles -