list_organization_groups
Lists groups in a Keycloak organization using realm and organization ID, with search, pagination, and hierarchy options. Requires Keycloak 26.6+.
Instructions
Get organization groups. Requires Keycloak 26.6+.
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>",
"org_id": "<org_id>"
},
"name": "list_organization_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search by attributes, as space-separated key:value pairs | |
| max | No | Maximum results to return | |
| exact | No | Exact match for search | |
| first | No | Pagination offset | |
| realm | Yes | Realm name | |
| org_id | Yes | Organization ID | |
| search | No | Search string filter | |
| subGroupsCount | No | Include the number of subgroups | |
| populateHierarchy | No | Populate the group hierarchy | |
| briefRepresentation | No | Return a brief representation |