<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Is it good practice to define password for users this way? I
      assume that usually just user himself should have access to his
      plain-text password and be able to login with it?<br>
      <br>
      If you really need this, there is just 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/reset-password/index.html">http://docs.jboss.org/keycloak/docs/1.0-beta-3/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/reset-password/index.html</a>
      for reset password,&nbsp; which is also used by admin console, but user
      needs to choose new password when login for the first time after
      reset. So I assume that this is the possibility you are already
      aware of.<br>
      <br>
      But note that after this reset, you know user's temporary
      password, so you can login with this temporary password and update
      password as user himself. Then user doesn't need to do anything,
      you just need to say him his password.<br>
      <br>
      Another possibility is to create new REST endpoint by yourself,
      which will use model API to do exactly what you want. For example
      see this
      <a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/tree/master/testsuite/tools">https://github.com/keycloak/keycloak/tree/master/testsuite/tools</a>
      which is REST application for adding big number of new users. You
      can maybe use something similar.<br>
      <br>
      Marek<br>
      <br>
      &nbsp;<br>
      On 1.7.2014 00:01, Rodrigo Sasaki wrote:<br>
    </div>
    <blockquote
cite="mid:CANLOgwCDOTUauJuAym+8r_36x69d28on7upzc_gVz6BqJTCd6w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello again!
        <div><br>
        </div>
        <div>Is there a way for me to define a password for a user
          through the REST API without him having to define a new one on
          the next login?</div>
        <div><br>
        </div>
        <div>The only method I found to be close to what I want was the
          one that resets the password, but I would like to redefine it
          without the user having anything to do with it.</div>
        <div><br>
        </div>
        <div>Is it possible?<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>