Is there an API call for changing user password on keycloak?

Itay k picture Itay k · Nov 25, 2015 · Viewed 31.3k times · Source

I am trying to implement my own form for changing a user's password. I tried to find an API for changing a user's password in Keycloak but I couldn't find anything in the documentation. Is there an API for doing it?

Answer

Barny picture Barny · Jan 26, 2016

you can use PUT /auth/admin/realms/{realm}/users/{id}/reset-password

  • {id} is the user id in keycloak (not the login)

Here is s sample body.

{ "type": "password", "temporary": false, "value": "my-new-password" }