[keycloak-dev] Support for updating user with credentials in admin endpoints

Thomas Darimont thomas.darimont at googlemail.com
Thu Jul 12 05:35:43 EDT 2018


Hello,

you can change the password a user via the keycloak admin-client with the
resetPassword(...) method.
   userRessource.get(userId).resetPassword(passwordCred);
See:
https://gist.github.com/thomasdarimont/c4e739c5a319cf78a4cff3b87173a84b#file-keycloakadminclientexample-java-L94

Cheers,
Thomas

On Thu, Jul 12, 2018 at 8:18 AM Hiroyuki Wada <h2-wada at nri.co.jp> wrote:

> Hello,
>
> Currently the Admin REST API ignores credentials when updating the user.
> I found the similar issue & discussion in the following links.
> It was accepted but it only supports creating method.
>
> https://issues.jboss.org/browse/KEYCLOAK-5026
> http://lists.jboss.org/pipermail/keycloak-dev/2017-June/009552.html
>
> In our case, we'd like to update users profile including any credentials
> from
> an external ID system.
> Could I send a pull request for supporting it?
>
> Best Regards
>
> --
> Hiroyuki Wada
> Nomura Research Institute, Ltd.
> h2-wada at nri.co.jp
>
> --------------------------------------------------------------------
> PLEASE READ:This e-mail is confidential and intended for
> the named recipient only. If you are not an intended recipient,
> please notify the sender and delete this e-mail.
> --------------------------------------------------------------------
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>


More information about the keycloak-dev mailing list