[keycloak-user] role-mappings.

Vaclav Havlik Johny.Dee at seznam.cz
Tue Feb 26 05:11:52 EST 2019


Hello,
can I ask you again?

I would like do assign some specific roles (view-realm, manage-users) on the
client realm-management to a user .

Via REST API, I cannot, however, even display the role-mappings by doing 
HTTP GET on
/auth/admin/realms/xxx/users/4c0f445a-53e9-45c2-a9c9-a8ac69bb5b48/role-
mappings/clients/realm-management 

(Gives HTTP 404, xxx is my realm).

But, if I take my own client, whose name is web_app, then the request
/auth/admin/realms/xxx/users/4c0f445a-53e9-45c2-a9c9-a8ac69bb5b48/role-
mappings/clients/web_app

works (HTTP 200), giving empty array.

When doing this, I follow instructions on
https://www.keycloak.org/docs-api/4.0/rest-api/index.html#_client_role_
mappings_resource

Can you tell me, what the problem is?
Thank you, Venca.


More information about the keycloak-user mailing list