[keycloak-dev] Admin REST API create new user
Horia Mocioi
a.mocioi at gmail.com
Fri Jun 5 02:18:45 EDT 2015
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 at 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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
>
--
<http://bookreader.ro>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150605/095e6eca/attachment.html
More information about the keycloak-dev
mailing list