<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"><<a href="mailto:dvvivek@gmail.com" target="_blank">dvvivek@gmail.com</a>></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'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'm using the following JSON to request body. Please let me know if I'm making some blunder mistake with respect to credentials part of the JSON.<br><div><div><br>{<br> "username": "cjbarker5",<br> "enabled": true,<br> "emailVerified": false,<br> "firstName": "CJ",<br> "lastName": "Barker",<br> "credentials": [<br> {<br> "type": "password",<br> "value": "newPas1*",<br> "temporary": false<br> }<br> ]<br>}<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div>Thanks & 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>