<p dir="ltr">But I could see create user API accepts UserRepresentation object in body param which in turn accepts credentials as an attribute.</p>
<p dir="ltr">Related links:</p>
<p dir="ltr"><a href="http://keycloak.github.io/docs/rest-api/index.html#_create_a_new_user">http://keycloak.github.io/docs/rest-api/index.html#_create_a_new_user</a></p>
<p dir="ltr"><a href="http://keycloak.github.io/docs/rest-api/index.html#_userrepresentation">http://keycloak.github.io/docs/rest-api/index.html#_userrepresentation</a></p>
<p dir="ltr">Thanks, <br>
Vivek</p>
<div class="gmail_quote">On Apr 6, 2016 11:54 PM, &quot;Dirk Franssen&quot; &lt;<a href="mailto:dirk.franssen@gmail.com">dirk.franssen@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><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" target="_blank">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>
</blockquote></div>