<div dir="ltr">I think it is not supported yet to do this in 1 call, you should:<div>1. create user</div><div>2. update user with role/group</div><div>3. reset-password or execute-actions-email (with UPDATE_PASSWORD action)</div><div><br></div><div>Dirk</div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 5:28 PM, vivek dhayalan <span dir="ltr">&lt;<a href="mailto:dvvivek@gmail.com" target="_blank">dvvivek@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,<br><br></div>With the help of REST API (/admin/realms/{realm}/users) I&#39;m trying to create user in a realm. The API creates user in that realm but, credentials w.r.t the user is not stored properly. I&#39;m using the following JSON to request body. Please let me know if I&#39;m making some blunder mistake with respect to credentials part of the JSON.<br><div><div><br>{<br>    &quot;username&quot;: &quot;cjbarker5&quot;,<br>    &quot;enabled&quot;: true,<br>    &quot;emailVerified&quot;: false,<br>    &quot;firstName&quot;: &quot;CJ&quot;,<br>    &quot;lastName&quot;: &quot;Barker&quot;,<br>    &quot;credentials&quot;: [<br>        {<br>            &quot;type&quot;: &quot;password&quot;,<br>            &quot;value&quot;: &quot;newPas1*&quot;,<br>            &quot;temporary&quot;: false<br>        }<br>    ]<br>}<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div>Thanks &amp; Regards<br>Vivek Dhayalan<br></div>
</font></span></div></div></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>