<div dir="ltr">We have rest endpoints (as well as a java admin client library) for everything that can be done through the admin console. One issue at the moment is that the default username/password for the admin has to be changed through the admin console. That's something we're going to improve in the future, but for now you'd have to reset the password manually or use for example Sellenium to do it before running your tests. You can take a look at our Arquillian based testsuite that does exactly this: <a href="https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian">https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian</a></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 October 2015 at 10:14, Ian Hamilton <span dir="ltr"><<a href="mailto:ihamilto@redhat.com" target="_blank">ihamilto@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I am new to redHat and my role is to set up automation test frameworks for <a href="http://developers.redhat.com" rel="noreferrer" target="_blank">developers.redhat.com</a>.<br>
<br>
I would like to know how to gain permissions to Keycloak admin in order create/delete new users on the fly in the tests using the Keycloak REST API? Or what the usual process is for creating users via the Keycloak.<br>
<br>
The reason for this is; when we make a new user for a test, we have a "clean slate" which allows us great control over how to shape that user for our test. And if we make that user using a REST API call, we avoid the time penalty of having to fill out a sign-up form (not to mention having to find any emails involved in confirming an email address).<br>
<br>
I would like to be able to do this locally, as well as in the staging environments.<br>
<br>
Could anyone point me in the right direction?<br>
<br>
thanks in advance,<br>
Ian<br>
_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
</blockquote></div><br></div>