[keycloak-user] Curl Commands to create Realm/User/AdminUsergroup

Marko Strukelj mstrukel at redhat.com
Tue Feb 20 08:34:35 EST 2018


Correct, kcadm allows you to perform any kind of REST API request against
Admin REST API.

There are some documented recipes on what you can do with it:
http://www.keycloak.org/docs/latest/server_admin/index.html#the-admin-cli

On Tue, Feb 20, 2018 at 7:07 AM, Виталий Ищенко <betalb at gmail.com> wrote:

> I think it’s tricky, because with curl you have to do authentication
> yourself.
>
> In other aspects kcadm seems to be 1-to-1 mapping of REST API
>
> Joshi, kcadm is not a GUI app, it is shell app.
> вт, 20 февр. 2018 г. в 5:08, Anton <kurrent93 at gmail.com>:
>
> > >
> > > Rather than curl which would be quite tricky,
> > >
> >
> > Why is it tricky?
> >
> > This is a concern if such simple tasks cannot be performed easily using
> the
> > rest api.
> >
> > On 9 February 2018 at 00:46, Hynek Mlnarik <hmlnarik at redhat.com> wrote:
> >
> > > Rather than curl which would be quite tricky, have you looked at kcadm
> > [1]?
> > >
> > > [1]
> > >
> > http://www.keycloak.org/docs/latest/server_admin/index.
> html#the-admin-cli
> > >
> > > On Thu, Feb 8, 2018 at 11:44 AM, Subodh Joshi <
> subodhcjoshi82 at gmail.com>
> > > wrote:
> > >
> > > > Hi ,
> > > >
> > > > Rather than using UI of keycloak some basic thing i will want to
> create
> > > > dynamically so i am thinking to  create a shell script file for linux
> > > > server which will able to do following
> > > >
> > > >    1. Create realm
> > > >    2. Create admin user group
> > > >    3. Create Admin Role
> > > >
> > > > How to automate these feature through CURL ? Can someone please guide
> > me?
> > > >
> > > > --
> > > > Subodh Chandra Joshi
> > > > subodh1_joshi82 at yahoo.co.in
> > > > http://www.trendsinnews.com
> > > > _______________________________________________
> > > > keycloak-user mailing list
> > > > keycloak-user at lists.jboss.org
> > > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > --Hynek
> > > _______________________________________________
> > > keycloak-user mailing list
> > > keycloak-user at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> > >
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list