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(a)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(a)yahoo.co.in>
http://www.questioninmind.com
--
Subodh Chandra Joshi
subodh1_joshi82(a)yahoo.co.in
http://www.trendsinnews.com