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

Stian Thorgersen sthorger at redhat.com
Mon Jul 16 14:39:23 EDT 2018


I don't see any issues with adding support for what you want. A PR would be
welcome as long as it comes with proper level of testing.

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

> Hello,
>
> Thanks for your comment.
> I know we can use the reset-password endpoint for changing password, but
> I want to update the user profile including credentials with single
> request.
> Also current reset-password endpoint only supports 'password' type
> credential.
> We also want to update other type credentials too.
>
> Best Regards
>
> On 2018/07/12 18:35, Thomas Darimont wrote:
> > 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
> >>
> >
>
> --
> 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