[keycloak-user] How to add user attribute through admin-cli

Marko Strukelj mstrukel at redhat.com
Fri Mar 23 05:52:56 EDT 2018


Is there a space in the middle of parentId UUID?

On Fri, Mar 23, 2018 at 8:42 AM, Subodh Joshi <subodhcjoshi82 at gmail.com>
wrote:

> I am trying to add three attributes of user and used below admin-cli
> command
>
> /opt/keycloak/bin/kcadm.sh create components -r master -s
> name=user-attribute -s providerId=user-attribute -s
> parentId=1295a70f-25f7-4e45-bcb8-285d750 1c6d9 -s
> 'config."appid"=["SURE_APP"]'  -s 'config."tenantId"=["T0"]' -s
> 'config."ugId"=["Admin_UserGroup"]'
>
> but its throwing
>
> No server or realm specified. Use --server, --realm, or 'kcadm.sh config
> credentials'.
>
> Can someone please let me know what wrong with above command?
>
> --
> Subodh Chandra Joshi
> subodh1_joshi82 at yahoo.co.in
> http://www.questioninmind.com
> _______________________________________________
> 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