list_users
Retrieve users from a Keycloak realm with optional filters such as username, email, name, status, identity provider, and creation date to support targeted user administration.
Instructions
List users in the realm, with optional filtering.
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_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Custom query for searching users | |
| max | No | Maximum results size | |
| No | Email filter | ||
| exact | No | If true, search is exact match | |
| first | No | Pagination offset | |
| realm | Yes | Realm name | |
| search | No | Search string for users | |
| enabled | No | Enabled filter | |
| idpAlias | No | Identity provider alias filter | |
| lastName | No | Last name filter | |
| username | No | Username filter | |
| firstName | No | First name filter | |
| idpUserId | No | Identity provider user ID filter | |
| createdAfter | No | Only return users created after (inclusive) the given date, in ISO-8601 format (yyyy-MM-dd) or epoch milliseconds | |
| createdBefore | No | Only return users created before (inclusive) the given date, in ISO-8601 format (yyyy-MM-dd) or epoch milliseconds | |
| emailVerified | No | Email verified filter | |
| briefRepresentation | No | If true, return brief representation |