Reset password using Rest API

200 views
Skip to first unread message

P Terziev

unread,
May 30, 2023, 7:29:47 AM5/30/23
to Keycloak User
How I can reset user password using Rest API from React page?

I found that I can use  PUT /{realm}/users/{id}/execute-actions-email

But how I can get {id}? Do I need to get e-mail using a API call by {id}?

After that do I need to use again PUT /{realm}/users/{id}/reset-password to set a new password?

Can you advise what are the available options to implement this?

Geoffrey Cleaves

unread,
May 30, 2023, 7:42:45 AM5/30/23
to P Terziev, Keycloak User
Hi. This is an unusual question. Do you want to allow an end user to reset their own password? 

I don't think you should be using the REST API for that. Leverage Keycloak's built in end user facing process for that. 

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/ef148206-24e7-4076-9690-de2a4b1bd53dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages