Keycloak Organizations API

The Organizations API from Keycloak — 24 operation(s) for organizations.

GitHub OpenAPI

Operations 38

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/realms/{realm}/organizations List organizations in a realm · Returns a paginated list of organizations filtered according to the specified… #
Ask an LLM
“Which organizations exist in my Keycloak realm?”
“Can I search realm organizations by name or domain?”
Tell an agent
List organizations in realm {realm}.
Find organizations in {realm} matching {search}.
POST /admin/realms/{realm}/organizations Create an organization · Creates a new organization #
Ask an LLM
“How do I create a new organization for my realm?”
“Can I set a redirect URL and custom attributes on a new organization?”
Tell an agent
Create an organization named {name} in realm {realm}.
Create organization {name} in {realm} with redirect URL {redirectUrl}.
GET /admin/realms/{realm}/organizations/count Count organizations in a realm · Returns the organizations counts #
Ask an LLM
“How many organizations are in my realm?”
“Can I count only the organizations linked to one identity provider?”
Tell an agent
Count organizations in realm {realm}.
Count organizations in {realm} linked to identity provider {identityProvider}.
GET /admin/realms/{realm}/organizations/members/{member-id}/organizations List organizations a user belongs to · Returns the organizations associated with the user that has the specified id #
Ask an LLM
“Which organizations is a given user a member of?”
“Can I see the orgs a user belongs to by their user ID?”
Tell an agent
List organizations user {member-id} belongs to in realm {realm}.
Show the org memberships of user {member-id} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id} Get an organization · Returns the organization representation #
Ask an LLM
“What are the details of one organization?”
“Can I fetch a single organization by its ID?”
Tell an agent
Get organization {org-id} in realm {realm}.
Show the details of organization {org-id} in {realm}.
PUT /admin/realms/{realm}/organizations/{org-id} Update an organization · Updates the organization #
Ask an LLM
“How do I rename or disable an existing organization?”
“Can I change an organization's redirect URL?”
Tell an agent
Rename organization {org-id} in realm {realm} to {name}.
Disable organization {org-id} in {realm}.
DELETE /admin/realms/{realm}/organizations/{org-id} Delete an organization · Deletes the organization #
Ask an LLM
“How do I delete an organization from my realm?”
“Can I remove an organization entirely?”
Tell an agent destructive · confirm first
Delete organization {org-id} from realm {realm}.
Remove organization {org-id} in {realm} permanently.
GET /admin/realms/{realm}/organizations/{org-id}/groups List an organization's groups · Get organization groups #
Ask an LLM
“What groups are defined in an organization?”
“Can I search an organization's groups by name or attributes?”
Tell an agent
List groups in organization {org-id} of realm {realm}.
Search groups in {org-id} ({realm}) for {search}.
POST /admin/realms/{realm}/organizations/{org-id}/groups Create or move a top-level organization group · Creates a new top-level group or moves an existing group to top-level #
Ask an LLM
“How do I create a new top-level group inside an organization?”
“Can I move an existing group to become a top-level group?”
Tell an agent
Create a top-level group named {name} in organization {org-id} of realm {realm}.
Move existing group {id} to the top level of {org-id} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/groups/group-by-path/{path} Get an organization group by path · Get organization group by path #
Ask an LLM
“How do I fetch an organization group using its full path?”
“Can I get an organization group by its path rather than its ID?”
Tell an agent
Get the organization group at path {path} in {org-id} of realm {realm}.
Fetch organization group {path} under {org-id} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/groups/{group-id} Get an organization group · Get organization group representation #
Ask an LLM
“What details does a group in my organization have?”
“Can I get an organization group's count of subgroups?”
Tell an agent
Get organization group {group} in {org} of realm {realm}.
Show {org} group {group} in realm {realm} with sub groups count {count}.
PUT /admin/realms/{realm}/organizations/{org-id}/groups/{group-id} Update an organization group · Update organization group #
Ask an LLM
“How do I rename or disable an organization group?”
“Can I change an organization group's description and attributes?”
Tell an agent
Rename organization group {group-id} in {org-id} of realm {realm} to {name}.
Disable organization group {group-id} under {org-id} in {realm}.
DELETE /admin/realms/{realm}/organizations/{org-id}/groups/{group-id} Delete an organization group · Delete the organization group #
Ask an LLM
“Can I delete a group from my organization and all its subgroups?”
“What happens to subgroups when an organization group is removed?”
Tell an agent destructive · confirm first
Delete organization group {group} from {org} in realm {realm}.
Remove {org} group {group} and its subgroups in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/groups/{group-id}/children List an organization group's subgroups · Get subgroups of this organization group #
Ask an LLM
“What subgroups belong to a given organization group?”
“Can I search an organization group's subgroups by name?”
Tell an agent
List subgroups of organization group {group-id} in {org-id} of realm {realm}.
Search subgroups under {group-id} in {org-id} ({realm}) for {search}.
POST /admin/realms/{realm}/organizations/{org-id}/groups/{group-id}/children Create or move a subgroup under an organization group · Create or move a subgroup #
Ask an LLM
“How do I create a new subgroup under an organization group?”
“Can I move an existing group under an organization group?”
Tell an agent
Create a subgroup named {name} under organization group {group-id} in {org-id} of realm {realm}.
Move existing group {id} under organization group {group-id} in {org-id} ({realm}).
GET /admin/realms/{realm}/organizations/{org-id}/groups/{group-id}/members List members of an organization group · Get members of this organization group #
Ask an LLM
“Who are the members of a given organization group?”
“Can I list only the user IDs of an organization group's members?”
Tell an agent
List members of organization group {group-id} in {org-id} of realm {realm}.
Show the first {max} members of group {group-id} under {org-id} in {realm}.
PUT /admin/realms/{realm}/organizations/{org-id}/groups/{group-id}/members/{userId} Add a user to an organization group · Add a user to this organization group #
Ask an LLM
“How do I add a user to an organization group?”
“Does the user need to already be a member of the organization to join a group?”
Tell an agent
Add user {userId} to organization group {group-id} in {org-id} of realm {realm}.
Make user {userId} a member of group {group-id} under {org-id} in {realm}.
DELETE /admin/realms/{realm}/organizations/{org-id}/groups/{group-id}/members/{userId} Remove a user from an organization group · Remove a user from this organization group #
Ask an LLM
“How do I take a user out of an organization group?”
“Does removing a user from a group also remove them from the organization?”
Tell an agent destructive · confirm first
Remove user {userId} from organization group {group-id} in {org-id} of realm {realm}.
Take user {userId} out of group {group-id} under {org-id} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/identity-providers List identity providers linked to an organization · Returns all identity providers associated with the organization #
Ask an LLM
“Which identity providers are associated with an organization?”
“Can I see the social login providers an organization uses?”
Tell an agent
List identity providers linked to organization {org-id} in realm {realm}.
Show the social identity providers for {org-id} in {realm}.
POST /admin/realms/{realm}/organizations/{org-id}/identity-providers Associate an identity provider with an organization · Adds the identity provider with the specified id to the organization #
Ask an LLM
“How do I link an existing identity provider to an organization?”
“Does associating an identity provider with an organization fail if it's already linked?”
Tell an agent
Associate identity provider with org {org} in realm {realm}.
Link an existing identity provider to organization {org} of {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias} Get an identity provider linked to an organization · Returns the identity provider associated with the organization that has the… #
Ask an LLM
“Which identity provider is linked to my organization?”
“Can I look up an organization's linked identity provider by its alias?”
Tell an agent
Get the identity provider {alias} linked to organization {org} in realm {realm}.
Show the organization {org} identity provider {alias} in {realm}.
PUT /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias} Update an organization's linked identity provider · Updates the per-association config for the identity provider linked to the… #
Ask an LLM
“Can I change the auto-join setting on an identity provider for my organization?”
“How do I set the membership type on an organization's linked identity provider?”
Tell an agent
Set auto membership to {auto} on identity provider {alias} for organization {org} in {realm}.
Change the membership type of {alias} for organization {org} in {realm} to {type}.
DELETE /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias} Unlink an identity provider from an organization · Removes the identity provider with the specified alias from the organization #
Ask an LLM
“How do I unlink an identity provider from my organization without deleting the provider?”
“Can I break the link between an organization and its identity provider?”
Tell an agent destructive · confirm first
Unlink identity provider {alias} from organization {org} in realm {realm}.
Break the {alias} provider link on organization {org} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/identity-providers/{alias}/groups List groups of an org identity provider · Returns organization groups for the identity provider #
Ask an LLM
“Which users in my organization can be mapped through a given identity provider?”
“Why are no groups returned for an identity provider associated with my organization?”
Tell an agent
List organization groups for identity provider {alias} in {org} of realm {realm}.
Find groups in {org} for identity provider {alias} in {realm} matching {q}.
GET /admin/realms/{realm}/organizations/{org-id}/invitations List invitations to an organization · Get invitations for the organization #
Ask an LLM
“Who has been invited to join my organization?”
“Can I filter organization invitations by status or email?”
Tell an agent
List invitations to organization {org} in realm {realm}.
Show {status} invitations to organization {org} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/invitations/{id} Get an organization invitation · Get invitation by ID #
Ask an LLM
“What are the details of one invitation to my organization?”
“Can I look up a single organization invitation by ID?”
Tell an agent
Get invitation {id} to organization {org} in realm {realm}.
Show the status of organization {org} invitation {id} in {realm}.
DELETE /admin/realms/{realm}/organizations/{org-id}/invitations/{id} Delete an organization invitation · Delete an invitation #
Ask an LLM
“How do I withdraw an invitation sent to someone in my organization?”
“Can I cancel an organization invitation before it is accepted?”
Tell an agent destructive · confirm first
Delete invitation {id} from organization {org} in realm {realm}.
Withdraw organization {org} invitation {id} in {realm}.
POST /admin/realms/{realm}/organizations/{org-id}/invitations/{id}/resend Resend an organization invitation · Resend an invitation #
Ask an LLM
“Can I send an invitation to my organization again to someone who missed it?”
“How do I resend an organization invitation?”
Tell an agent
Resend invitation {id} to organization {org} in realm {realm}.
Send organization {org} invitation {id} again in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/members List and search members of an organization · Returns a paginated list of organization members filtered according to the… #
Ask an LLM
“Who belongs to my organization, and can I page through the full member list?”
“Can I search an organization's members by username, email or name?”
Tell an agent
List the members of organization {org} in realm {realm}.
Search organization {org} in {realm} for members matching {search}.
POST /admin/realms/{realm}/organizations/{org-id}/members Add an existing user to an organization · Adds the user with the specified id as a member of the organization #
Ask an LLM
“How do I add a user who already has a user account to my organization?”
“Can I associate an existing user with an organization?”
Tell an agent
Add the existing user to organization {org} in realm {realm}.
Associate an existing user with organization {org} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/members/count Count members of an organization · Returns number of members in the organization #
Ask an LLM
“How many members does my organization have?”
“Can I get just the member count for an organization?”
Tell an agent
Count the members of organization {org} in realm {realm}.
Tell me how many people are in organization {org} in {realm}.
POST /admin/realms/{realm}/organizations/{org-id}/members/invite-existing-user Invite an existing user to an organization · Invites an existing user to the organization, using the specified user id #
Ask an LLM
“Can I invite a user who already has a user account to my organization?”
“How do I send an existing user an invitation to join an organization?”
Tell an agent
Invite the existing user to organization {org} in realm {realm}.
Send an existing user an invitation to join organization {org} in {realm}.
POST /admin/realms/{realm}/organizations/{org-id}/members/invite-user Invite a user by email to an organization · Invites an existing user or sends a registration link to a new user, based on… #
Ask an LLM
“How do I invite someone to my organization by email?”
“Does inviting a user by email send a registration link if they don't exist yet?”
Tell an agent
Invite {email} to organization {org} in realm {realm}.
Send an invitation to {email} for organization {org} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/members/{member-id} Get a member of an organization · Returns the member of the organization with the specified id #
Ask an LLM
“What are the details of one member of my organization?”
“Can I look up a single organization member by ID?”
Tell an agent
Get member {member} of organization {org} in realm {realm}.
Show the profile of organization {org} member {member} in {realm}.
DELETE /admin/realms/{realm}/organizations/{org-id}/members/{member-id} Remove a user from an organization · Removes the user with the specified id from the organization #
Ask an LLM
“How do I remove someone from my organization?”
“Can I break the association between a user and an organization without deleting the user?”
Tell an agent destructive · confirm first
Remove member {member} from organization {org} in realm {realm}.
Unassociate {member} from organization {org} in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/members/{member-id}/groups List an organization member's group memberships · Returns the organization group memberships for a member with the specified id #
Ask an LLM
“Which organization groups is a member part of?”
“Can I see the group memberships of one organization member?”
Tell an agent
List the organization groups {member} belongs to in {realm}.
Show group memberships for member {member} of organization {org} in {realm}.
PUT /admin/realms/{realm}/organizations/{org-id}/members/{member-id}/membership-type Change an organization member's membership type · Updates the membership type of the member with the specified id #
Ask an LLM
“Can I change a member's membership type in my organization?”
“How do I update the membership type of an organization member?”
Tell an agent
Set the membership type of member {member} in organization {org} in {realm}.
Change organization {org} member {member}'s membership type in {realm}.
GET /admin/realms/{realm}/organizations/{org-id}/members/{member-id}/organizations List organizations a user belongs to · Returns the organizations associated with the user that has the specified id #
Ask an LLM
“Which organizations is a particular user a member of?”
“What does the user's membership type tell me about their organization role?”
Tell an agent
List organizations {org} and {member} belong to in realm {realm}.
Show my {org} membership type for member {member} in {realm}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/keycloak:keycloak-organizations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

keycloak-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keycloak Admin REST Organizations API
  description: This is a REST API reference for the Keycloak Admin REST API.
  version: '1.0'
tags:


# --- truncated at 32 KB (53 KB total) ---
# Full source: https://artifacts.apis.io/keycloak/openapi/keycloak-organizations-api-openapi.yml