Interface OrganizationsMembersResource


public interface OrganizationsMembersResource
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.keycloak.representations.idm.OrganizationRepresentation>
    Returns the organizations associated with the user that has the specified id.
    List<org.keycloak.representations.idm.OrganizationRepresentation>
    getOrganizations(String id, boolean briefRepresentation)
    Returns the organizations associated with the user that has the specified id.
  • Method Details

    • getOrganizations

      @Path("{id}/organizations") @GET @Produces("application/json") List<org.keycloak.representations.idm.OrganizationRepresentation> getOrganizations(@PathParam("id") String id)
      Returns the organizations associated with the user that has the specified id.
      Parameters:
      id - user id
      Returns:
      Organizations of the user
    • getOrganizations

      @Path("{id}/organizations") @GET @Produces("application/json") List<org.keycloak.representations.idm.OrganizationRepresentation> getOrganizations(@PathParam("id") String id, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
      Returns the organizations associated with the user that has the specified id.
      Parameters:
      id - user id
      briefRepresentation - if false, return the full representation. Otherwise, only the basic fields are returned. It is true by default. Parameter supported since Keycloak 26.3. It is assumed to be false for the older Keycloak server versions.
      Returns:
      Organizations of the user