Reset user password
keycloak_user_reset_passwordReset a user's password in Keycloak by providing the new password and explicit confirmation. Use after user creation to set credentials, invalidating the old password.
Instructions
Destructive write that overwrites a user's password with the supplied value, returning "Password reset." on success or a "Not reset: " message if confirmation was declined. Requires explicit confirmation: pass confirm=true, otherwise the operation is blocked pending approval. Commonly used right after keycloak_user_create to give a new account credentials. Not idempotent in effect, since it invalidates the previous password.
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": {
"id": "<id>",
"password": "<password>"
},
"name": "keycloak_user_reset_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The Keycloak user id (UUID) whose password will be set. Required; obtain it from keycloak_user_search. | |
| confirm | No | Must be true to proceed; if omitted or false, the reset is blocked pending confirmation. Optional; defaults to false. | |
| password | Yes | The new plaintext password to set for the user. Required. | |
| temporary | No | If true, the user must change this password at next login. Optional; defaults to false (permanent password). |