members
Organization membership and roles (super-admin or organization administrator)
Add a member or set their role
Attaches the user to the organization if needed and grants the given role
path Parameters
aliasuserIdAdd a member or set their role › Request Body
roleAdd a member or set their role › Responses
Unknown organization or user
idemailfirstNamelastNameenabledemailVerifiedWhether the person confirmed the address; false while the invitation is pending
roleList an organization's members with their role
Follow the Link header to page through the collection. X-Total-Count is absent when a search narrows the list, because Keycloak cannot count members matching a search.
path Parameters
aliasquery Parameters
page0-indexed page number
sizePage size
searchFree-text search. The fields it matches are documented per endpoint.
sortSort field, prefixed with '-' for descending (e.g. -createdAt). Only present on endpoints whose backing store supports sorting.
List an organization's members with their role › Responses
Invite a person into the organization
Creates the account and emails the invitation (valid three days) when no account holds the email; otherwise attaches the existing account, whose owner already has a password. The answer is the same either way.
path Parameters
aliasInvite a person into the organization › Request Body
emailEmail, also used as the username
roleRole to grant in the organization
firstNameGiven name, used when the account is created
lastNameFamily name, used when the account is created
locale[a-z]{2,3}(-[A-Z]{2}…Language of the emails and the login page, used when the account is created
Invite a person into the organization › Responses
Member added
idemailfirstNamelastNameenabledemailVerifiedWhether the person confirmed the address; false while the invitation is pending
role