Interface OrganizationMembersResource
public interface OrganizationMembersResource
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecount()getAll()Deprecated.getOrganizations(String id, boolean briefRepresentation) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseinviteUser(String email, String firstName, String lastName) Return members in the organization.Return members in the organization.jakarta.ws.rs.core.ResponseremoveMember(String memberId) Return all organization members that match the specified filters.Return all organization members that match the specified filters.Return all organization members that match the specified filters.search(String search, Boolean exact, MembershipType membershipType, Integer first, Integer max, boolean briefRepresentation) Return all organization members that match the specified filters.
-
Method Details
-
addMember
-
removeMember
@Path("{member-id}") @DELETE jakarta.ws.rs.core.Response removeMember(@PathParam("member-id") String memberId) -
getAll
Deprecated.Return all members in the organization.- Returns:
- a list containing the organization members. Returns brief user representations by default.
-
list
@GET @Produces("application/json") List<MemberRepresentation> list(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults) Return members in the organization.- Parameters:
first- index of the first element (pagination offset).max- the maximum number of results.- Returns:
- a list containing organization members. Returns brief user representations by default.
Use
list(Integer, Integer, boolean)to control the representation type.
-
list
@GET @Produces("application/json") List<MemberRepresentation> list(@QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResults, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Return members in the organization.- Parameters:
first- index of the first element (pagination offset).max- the maximum number of results.briefRepresentation- if false, return the full representation. Otherwise, only the basic fields are returned. It is true by default.- Returns:
- a list containing organization members.
- Since:
- Keycloak server 26.7
-
search
@GET @Produces("application/json") List<MemberRepresentation> search(@QueryParam("search") String search, @QueryParam("exact") Boolean exact, @QueryParam("first") Integer first, @QueryParam("max") Integer max) Return all organization members that match the specified filters.- Parameters:
search- aStringrepresenting either a member's username, e-mail, first name, or last name.exact- iftrue, the members will be searched using exact match for thesearchparam - i.e. at least one of the username main attributes must match exactly thesearchparam. If false, the method returns all members with at least one main attribute partially matching thesearchparam.first- index of the first element (pagination offset).max- the maximum number of results.- Returns:
- a list containing the matched organization members. Returns brief user representations by default.
Use
search(String, Boolean, Integer, Integer, boolean)to control the representation type.
-
search
@GET @Produces("application/json") List<MemberRepresentation> search(@QueryParam("search") String search, @QueryParam("exact") Boolean exact, @QueryParam("first") Integer first, @QueryParam("max") Integer max, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Return all organization members that match the specified filters.- Parameters:
search- aStringrepresenting either a member's username, e-mail, first name, or last name.exact- iftrue, the members will be searched using exact match for thesearchparam - i.e. at least one of the username main attributes must match exactly thesearchparam. If false, the method returns all members with at least one main attribute partially matching thesearchparam.first- index of the first element (pagination offset).max- the maximum number of results.briefRepresentation- if false, return the full representation. Otherwise, only the basic fields are returned. It is true by default.- Returns:
- a list containing the matched organization members.
- Since:
- Keycloak server 26.7
-
search
@GET @Produces("application/json") List<MemberRepresentation> search(@QueryParam("search") String search, @QueryParam("exact") Boolean exact, @QueryParam("membershipType") MembershipType membershipType, @QueryParam("first") Integer first, @QueryParam("max") Integer max) Return all organization members that match the specified filters.- Parameters:
search- aStringrepresenting either a member's username, e-mail, first name, or last name.exact- iftrue, the members will be searched using exact match for thesearchparam - i.e. at least one of the username main attributes must match exactly thesearchparam. If false, the method returns all members with at least one main attribute partially matching thesearchparam.membershipType- TheMembershipType. The parameter is supported since Keycloak 26.1first- index of the first element (pagination offset).max- the maximum number of results.- Returns:
- a list containing the matched organization members. Returns brief user representations by default.
Use
search(String, Boolean, MembershipType, Integer, Integer, boolean)to control the representation type. - Since:
- Keycloak 26.1. Use method
search(String, Boolean, Integer, Integer)for the older versions of the Keycloak server
-
search
@GET @Produces("application/json") List<MemberRepresentation> search(@QueryParam("search") String search, @QueryParam("exact") Boolean exact, @QueryParam("membershipType") MembershipType membershipType, @QueryParam("first") Integer first, @QueryParam("max") Integer max, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Return all organization members that match the specified filters.- Parameters:
search- aStringrepresenting either a member's username, e-mail, first name, or last name.exact- iftrue, the members will be searched using exact match for thesearchparam - i.e. at least one of the username main attributes must match exactly thesearchparam. If false, the method returns all members with at least one main attribute partially matching thesearchparam.membershipType- TheMembershipType. The parameter is supported since Keycloak 26.1first- index of the first element (pagination offset).max- the maximum number of results.briefRepresentation- if false, return the full representation. Otherwise, only the basic fields are returned. It is true by default.- Returns:
- a list containing the matched organization members.
- Since:
- Keycloak server 26.7
-
member
-
inviteUser
-
inviteExistingUser
@POST @Path("invite-existing-user") @Consumes("application/x-www-form-urlencoded") jakarta.ws.rs.core.Response inviteExistingUser(@FormParam("id") String id) -
count
- Returns:
- count of members of the organization
- Since:
- Keycloak server 26
-
getOrganizations
@Path("{id}/organizations") @GET @Produces("application/json") List<OrganizationRepresentation> getOrganizations(@PathParam("id") String id, @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)
-