Hello and thank you both for your answers.
Very complete. Both of them worked.
Thank you again,
Horia
On Thu, Jun 4, 2015 at 2:55 PM, Scott Rossillo <srossillo(a)smartling.com>
wrote:
Keycloak keycloak = Keycloak.getInstance(…); // your args here
UserRepresentation user = new UserRepresentation();
// call user setters
try {
keycloak.realm(“realm-name").users().create(user);
} finally {
keycloak.close();
}
On Jun 4, 2015, at 6:14 AM, Horia Mocioi <a.mocioi(a)gmail.com> wrote:
Hello,
I would like to create a user via Admin REST API using HttpPost.
Unfortunately, I was not able to find any example on how to create a user
or role.
I successfully managed to list roles and user using the example from
admin-access-api, but now I would like to create a new user.
Can anyone provide an example using HttpPost on how to create a new user?
Thank you,
Horia
--
<
http://bookreader.ro/>
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev
--
<
http://bookreader.ro>