Class OrganizationMemberResource
java.lang.Object
org.keycloak.organization.admin.resource.OrganizationMemberResource
-
Constructor Summary
ConstructorsConstructorDescriptionOrganizationMemberResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent, AdminPermissionEvaluator auth) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecount()Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization).jakarta.ws.rs.core.ResponsePrecondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization).getOrganizations(String memberId, boolean briefRepresentation) Precondition: when reached via the per-org path, the caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization).groupMemberships(String memberId, Integer firstResult, Integer maxResults, String search, boolean briefRepresentation) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization).jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseinviteUser(String email, String firstName, String lastName) search(String search, Boolean exact, Integer first, Integer max, String membershipType, boolean briefRepresentation) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization).
-
Constructor Details
-
OrganizationMemberResource
public OrganizationMemberResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent, AdminPermissionEvaluator auth)
-
-
Method Details
-
addMember
-
inviteUser
-
inviteExistingUser
@POST @Path("invite-existing-user") @Consumes("application/x-www-form-urlencoded") public jakarta.ws.rs.core.Response inviteExistingUser(@FormParam("id") String id) -
search
@GET @Produces("application/json") public Stream<MemberRepresentation> search(@QueryParam("search") String search, @QueryParam("exact") Boolean exact, @QueryParam("first") @DefaultValue("0") Integer first, @QueryParam("max") @DefaultValue("10") Integer max, @QueryParam("membershipType") String membershipType, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization). This method additionally requiresauth.users().requireQuery(). -
get
@Path("{member-id}") @GET @Produces("application/json") public MemberRepresentation get(@PathParam("member-id") String memberId) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization). This method additionally requiresauth.users().requireView(member). -
delete
@Path("{member-id}") @DELETE public jakarta.ws.rs.core.Response delete(@PathParam("member-id") String memberId) -
getOrganizations
@Path("{member-id}/organizations") @GET @Produces("application/json") public Stream<OrganizationRepresentation> getOrganizations(@PathParam("member-id") String memberId, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Precondition: when reached via the per-org path, the caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization). When reached via the collection-level path (/organizations/members/{id}/organizations), the caller passes throughOrganizationsResource#getOrganizations(String)which enforcesauth.orgs().requireQuery(). This method additionally requiresauth.users().requireView(member)and filters returned organizations byauth.orgs().canView(org). -
groupMemberships
@Path("{member-id}/groups") @GET @Produces("application/json") public Stream<GroupRepresentation> groupMemberships(@PathParam("member-id") String memberId, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("search") String search, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization). This method additionally requiresauth.users().requireView(member). -
count
Precondition: caller must have passed throughOrganizationsResource.get(String)which enforcesauth.orgs().requireView(organization). This method additionally requiresauth.users().requireQuery().
-