List / search users
list_usersRetrieve users from a Keycloak realm with free-text search and pagination. Returns user details without passwords or secrets.
Instructions
List users in a realm. Supports free-text search and pagination. Passwords and secrets are never returned by Keycloak.
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 |
|---|---|---|---|
| max | No | Max results (default 50) | |
| first | No | Pagination offset | |
| realm | Yes | Realm name | |
| search | No | Free-text search across username, email, first and last name |