Keycloak Role Assignment and Creation - JU-DEV-Bootcamps/ERAS GitHub Wiki
Roles Creation
To create roles first we have to login as an Admin user and select the REALM to be updated
Select "Realm Roles":
And now we click to Create Role then add the required fields:
Once we saved the roles, we can see them listed:
Export Configuration
Select "Real Settings" and click in "Action -> Partial Export":
Select the next options:
now the Json would be available to use.
Role Assignment
Go to "Users" and select a user to work with:
Once we select a user we go to "Role mapping" and click on "Assign Role":
Then we select "Filter by realm roles":
Now we can see all the roles related with our realm and assign any of them to our selected user: