Class OrganizationGroupResource
java.lang.Object
org.keycloak.organization.admin.resource.OrganizationGroupResource
-
Constructor Summary
ConstructorsConstructorDescriptionOrganizationGroupResource(org.keycloak.models.KeycloakSession session, org.keycloak.organization.OrganizationProvider organizationProvider, org.keycloak.models.OrganizationModel organization, org.keycloak.models.GroupModel group, AdminEventBuilder adminEvent, AdminPermissionEvaluator auth) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddSubGroup(org.keycloak.representations.idm.GroupRepresentation rep) voidorg.keycloak.representations.idm.GroupRepresentationgetGroup(boolean subGroupsCount) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization), and then throughOrganizationGroupsResource.getGroupById(String)which enforces the same check.Stream<org.keycloak.representations.idm.MemberRepresentation>getMembers(Integer firstResult, Integer maxResults, Boolean briefRepresentation) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization), and then throughOrganizationGroupsResource.getGroupById(String)which enforces the same check.Stream<org.keycloak.representations.idm.GroupRepresentation>getSubGroups(String search, Boolean exact, Integer first, Integer max, boolean subGroupsCount) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization), and then throughOrganizationGroupsResource.getGroupById(String)which enforces the same check.voidvoidleaveGroup(String userId) jakarta.ws.rs.core.ResponseupdateGroup(org.keycloak.representations.idm.GroupRepresentation rep)
-
Constructor Details
-
OrganizationGroupResource
public OrganizationGroupResource(org.keycloak.models.KeycloakSession session, org.keycloak.organization.OrganizationProvider organizationProvider, org.keycloak.models.OrganizationModel organization, org.keycloak.models.GroupModel group, AdminEventBuilder adminEvent, AdminPermissionEvaluator auth)
-
-
Method Details
-
getGroup
@GET @Produces("application/json") public org.keycloak.representations.idm.GroupRepresentation getGroup(@QueryParam("subGroupsCount") @DefaultValue("false") boolean subGroupsCount) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization), and then throughOrganizationGroupsResource.getGroupById(String)which enforces the same check. -
getRoleMappings
-
deleteGroup
@DELETE public void deleteGroup() -
updateGroup
@PUT @Consumes("application/json") public jakarta.ws.rs.core.Response updateGroup(org.keycloak.representations.idm.GroupRepresentation rep) -
getSubGroups
@GET @Path("children") @Produces("application/json") public Stream<org.keycloak.representations.idm.GroupRepresentation> getSubGroups(@QueryParam("search") String search, @QueryParam("exact") Boolean exact, @QueryParam("first") @DefaultValue("0") Integer first, @QueryParam("max") @DefaultValue("10") Integer max, @QueryParam("subGroupsCount") boolean subGroupsCount) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization), and then throughOrganizationGroupsResource.getGroupById(String)which enforces the same check. -
addSubGroup
@POST @Path("children") @Produces("application/json") @Consumes("application/json") public jakarta.ws.rs.core.Response addSubGroup(org.keycloak.representations.idm.GroupRepresentation rep) -
getMembers
@GET @Path("members") @Produces("application/json") public Stream<org.keycloak.representations.idm.MemberRepresentation> getMembers(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("briefRepresentation") Boolean briefRepresentation) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization), and then throughOrganizationGroupsResource.getGroupById(String)which enforces the same check. This method additionally requiresauth.users().requireQuery(). -
joinGroup
-
leaveGroup
-