[keycloak-dev] Admin REST API create new user
Scott Rossillo
srossillo at smartling.com
Thu Jun 4 07:55:52 EDT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150604/ad2599ea/attachment.html
More information about the keycloak-dev
mailing list