Get user by id
get_userFetch a single Keycloak user representation by realm and user ID (UUID) to inspect account details. Use it when you need one user's attributes, roles, or status from a specific realm.
Instructions
Fetch a single user representation by their Keycloak id.
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>",
"userId": "<userId>"
},
"name": "get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| userId | Yes | Keycloak user id (UUID) |