Reputation: 1690
When I create a User in my realm, and click the Role Mappings tab, according to every SO post I see there should be a way to select the realm roles to apply. But in my case I am not seeing them.
I am trying to add the manage_users
role, so I can use this User to manage users via the API. But almost all the realm roles are missing from the Role Mapping tab.
Can anyone enlighten me about what else I need to do so the realm roles appear, especially the realm_management
ones?
Upvotes: 8
Views: 5196
Reputation: 485
The above answer is helpful and great.
To narrow down to a specific case, if you can not see the roles you created when assigning roles to the group, simply filter by realm roles.
See the screenshot below:
BEFORE
AFTER
Upvotes: 2
Reputation: 51523
In the Role Mappings
tab
You need to click on the Assign role
button
which will popup the following menu:
and from there you can find the client and realm roles.
I am trying to add the manage_users role, so I can use this User to manage users via the API.
If the previous menu you would change Filter by realm roles
to Filter by clients
, and the following menu would show up:
and in the Search by role name
field type realm-management
:
select manage_users
and then click Assign
. You should see that role being assigned to your user
Upvotes: 14