You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to create an UMA policy that give permission based on group AND role?
#14691
In this section of the doc it mentions that permissions can be given based on roles, or groups, or clients. But it doesn't say anything about what happens if I combine those or if that is even possible. I took a quick look in the code and it doesn't seem to mind if the user specifying both roles and groups at least. Anyway, I would like to give permission if a user belongs to a role and a group. How do I do that?
Another question that I have is whether roles in an UMA policy refers only to realm roles or both realm roles and client roles.
The underlying reason why I want to give permission using both role and group is because I see that Keycloak still lacks the concept of domains. A role in a domain should only be given permission to resources within that domain. But a user can belong to one or more domains. So group I think is a potential way to represent domain because it can group users. Client is another potential candidate because it can own resources and roles. Any idea here is welcome as well!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In this section of the doc it mentions that permissions can be given based on roles, or groups, or clients. But it doesn't say anything about what happens if I combine those or if that is even possible. I took a quick look in the code and it doesn't seem to mind if the user specifying both
rolesandgroupsat least. Anyway, I would like to give permission if a user belongs to a role and a group. How do I do that?Another question that I have is whether
rolesin an UMA policy refers only to realm roles or both realm roles and client roles.The underlying reason why I want to give permission using both role and group is because I see that Keycloak still lacks the concept of domains. A role in a domain should only be given permission to resources within that domain. But a user can belong to one or more domains. So group I think is a potential way to represent domain because it can group users. Client is another potential candidate because it can own resources and roles. Any idea here is welcome as well!
All reactions