<div dir="ltr">I believe I can help you with this one. The Keycloak team can correct me if I say anything inaccurate.<div><br></div><div>There is an admin-client bundled with Keycloak that can be used to access the Keycloak REST API, it&#39;s basically a Java REST client for the REST API that they provide and is documented here: <a href="http://docs.jboss.org/keycloak/docs/1.0-beta-4/rest-api/overview-index.html">http://docs.jboss.org/keycloak/docs/1.0-beta-4/rest-api/overview-index.html</a></div>
<div><br></div><div>Basically what you need is an OAuthClient or an Application, and a User and you can alter information like you requested.</div><div><br></div><div>The source is here: <a href="https://github.com/keycloak/keycloak/tree/master/integration/admin-client">https://github.com/keycloak/keycloak/tree/master/integration/admin-client</a></div>
<div>And you can add it as a maven dependency as well: <a href="http://maven-repository.com/artifact/org.keycloak/keycloak-admin-client/1.0-beta-4">http://maven-repository.com/artifact/org.keycloak/keycloak-admin-client/1.0-beta-4</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 3:08 PM, Kamal Jagadevan <span dir="ltr">&lt;<a href="mailto:j.kamal@ymail.com" target="_blank">j.kamal@ymail.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><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10pt">
<div>Hello,</div><div>  Are there any alternative ways like command line or shortcuts to update the Realm settings or user settings in Keycloak.</div><div>Though it is possible to set it up through Admin console but trying to avoid the setup steps through UI.</div>
<div><br></div><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">Looks like during application bootstrap these are few settings like admin password to be reset &amp; Direct Grant API access being disabled.</div>
<div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">Is there any other better way to modify other than UI or directly updating them in database.<br>
</div><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br></div><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">
<br></div><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">Please let us know. This is critical for our post install steps while integrating with Keycloak.<br>
</div><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><br></div><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">
Thanks</div><span class="HOEnZb"><font color="#888888"><div style="color:rgb(0,0,0);font-size:13.3333px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">
Kamal<br></div></font></span></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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div>
</div></div>
</div>