<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      actually you can do it with this endpoint:
      <a class="moz-txt-link-freetext" href="http://docs.jboss.org/keycloak/docs/1.0-beta-3/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/#PUT">http://docs.jboss.org/keycloak/docs/1.0-beta-3/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/#PUT</a>
      . You need to pass whole user representation of particular user in
      the request body of this PUT request. See admin console (page for
      updating users) for more details.<br>
      <br>
      Marek<br>
      <br>
      <br>
      On 1.7.2014 16:27, Rodrigo Sasaki wrote:<br>
    </div>
    <blockquote
cite="mid:CANLOgwDrNsjuXsbJT8EggAHPWM18yPxQ514KTmfy2pF+FL7TFA@mail.gmail.com"
      type="cite">
      <div dir="ltr">How would I remove the update password required
        action via the REST API?</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Jul 1, 2014 at 5:20 AM, Stian
          Thorgersen <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">You can
            actually already do this if you want, both through endpoints
            and the admin console. You just need to set a temporary
            password and afterwards remove the update password required
            action. As Marek says though it doesn't really make sense to
            do so.<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                ----- Original Message -----<br>
                &gt; From: "Marek Posolda" &lt;<a moz-do-not-send="true"
                  href="mailto:mposolda@redhat.com">mposolda@redhat.com</a>&gt;<br>
                &gt; To: "Rodrigo Sasaki" &lt;<a moz-do-not-send="true"
                  href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>&gt;,
                <a moz-do-not-send="true"
                  href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
                &gt; Sent: Tuesday, 1 July, 2014 8:07:36 AM<br>
                &gt; Subject: Re: [keycloak-user] Defining a new user
                password through REST API<br>
                &gt;<br>
                &gt; Hi,<br>
                &gt;<br>
                &gt; Is it good practice to define password for users
                this way? I assume that<br>
                &gt; usually just user himself should have access to his
                plain-text password and<br>
                &gt; be able to login with it?<br>
                &gt;<br>
                &gt; If you really need this, there is just endpoint<br>
                &gt; <a moz-do-not-send="true"
href="http://docs.jboss.org/keycloak/docs/1.0-beta-3/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/reset-password/index.html"
                  target="_blank">http://docs.jboss.org/keycloak/docs/1.0-beta-3/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/reset-password/index.html</a><br>
                &gt; for reset password, which is also used by admin
                console, but user needs to<br>
                &gt; choose new password when login for the first time
                after reset. So I assume<br>
                &gt; that this is the possibility you are already aware
                of.<br>
                &gt;<br>
                &gt; But note that after this reset, you know user's
                temporary password, so you<br>
                &gt; can login with this temporary password and update
                password as user himself.<br>
                &gt; Then user doesn't need to do anything, you just
                need to say him his<br>
                &gt; password.<br>
                &gt;<br>
                &gt; Another possibility is to create new REST endpoint
                by yourself, which will<br>
                &gt; use model API to do exactly what you want. For
                example see this<br>
                &gt; <a moz-do-not-send="true"
                  href="https://github.com/keycloak/keycloak/tree/master/testsuite/tools"
                  target="_blank">https://github.com/keycloak/keycloak/tree/master/testsuite/tools</a>
                which is<br>
                &gt; REST application for adding big number of new
                users. You can maybe use<br>
                &gt; something similar.<br>
                &gt;<br>
                &gt; Marek<br>
                &gt;<br>
                &gt;<br>
                &gt; On 1.7.2014 00:01, Rodrigo Sasaki wrote:<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; Hello again!<br>
                &gt;<br>
                &gt; Is there a way for me to define a password for a
                user through the REST API<br>
                &gt; without him having to define a new one on the next
                login?<br>
                &gt;<br>
                &gt; The only method I found to be close to what I want
                was the one that resets<br>
                &gt; the password, but I would like to redefine it
                without the user having<br>
                &gt; anything to do with it.<br>
                &gt;<br>
                &gt; Is it possible?<br>
                &gt;<br>
                &gt; --<br>
                &gt; Rodrigo Sasaki<br>
                &gt;<br>
                &gt;<br>
                &gt; _______________________________________________<br>
                &gt; keycloak-user mailing list <a
                  moz-do-not-send="true"
                  href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="https://lists.jboss.org/mailman/listinfo/keycloak-user"
                  target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
                &gt;<br>
                &gt;<br>
                &gt; _______________________________________________<br>
                &gt; keycloak-user mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="https://lists.jboss.org/mailman/listinfo/keycloak-user"
                  target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font></div>
      </div>
    </blockquote>
    <br>
  </body>
</html>