list_organizations
Retrieves organizations in a Keycloak realm, with optional filters such as search text, custom attributes, identity provider, and pagination. Use it to browse or find organizations before managing their members or settings.
Instructions
List organizations for the realm, optionally filtered by search criteria. Requires Keycloak 25+.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"realm": "<realm>"
},
"name": "list_organizations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | A query to search for custom attributes, in the format 'key1:value2 key2:value2' | |
| max | No | Maximum results to return | |
| exact | No | Exact match for search | |
| first | No | Pagination offset | |
| realm | Yes | Realm name | |
| search | No | Search string filter | |
| identityProvider | No | The alias of an identity provider, to only return the organizations linked to it. Cannot be combined with 'q' | |
| briefRepresentation | No | if false, return the full representation. Otherwise, only the basic fields are returned |