[keycloak-user] Is User Role Mappings possible by admin-cli

Subodh Joshi subodhcjoshi82 at gmail.com
Mon Mar 5 07:05:20 EST 2018


Ok I found it and here is the command

/opt/keycloak/bin/kcadm.sh add-roles -r <REALM-NAME> --uusername <ADMIN>
--cclientid <YOUR_APP> --rolename <ROLE-NAME>


On Mon, Mar 5, 2018 at 5:23 PM, Subodh Joshi <subodhcjoshi82 at gmail.com>
wrote:

>
> I have a client role like this
> kcadm.sh create clients/590c3a24-gf46-4ce2-9589-6d2d166d1a8d/roles -r
> T0_Realm -s name=user -s 'description=user can access the portal'
>
> Now i want to map this newly created role[user] via user role mapping what
> will admin-cli command ,though ui its possible
>
> http://www.keycloak.org/docs/3.3/server_admin/topics/roles/
> user-role-mappings.html
>
> --
> Subodh Chandra Joshi
>   <subodh1_joshi82 at yahoo.co.in>
> http://www.questioninmind.com
>



-- 
Subodh Chandra Joshi
subodh1_joshi82 at yahoo.co.in
http://www.trendsinnews.com


More information about the keycloak-user mailing list