You signed in wi
8000
th 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
Allow setting the decision strategy for permissions #44008
By design, permissions are set with the decision strategy UNANIMOUS, by default. Just like other decisions made for FGAP v2, we wanted to start with hard constraints on the key aspects of the feature, mainly those that are related to how permissions are enforced and evaluated.
Based on the community feedback, the UNANIMOUS decision forces users and administrators to use aggregate policies whenever they want a permission to be granted if any of the associated policies grant access.
We should consider allowing setting the decision strategy on permissions, such as AFFIRMATIVE, so that administrators can opt in for how the decision should be made when evaluating the policies associated with the permission.
Value Proposition
Improve UX on FGAP v2 by allowing administrators to choose how the policies associated with a permission should be evaluated.
Goals
Improve UX on FGAP v2 by allowing administrators to choose how the policies associated with a permission should be evaluated.
Hi,
I'm deploying KeyCloak with FGAPv2 in a production environment subject to ISO27001 and have some use-cases. @vramik sent me over here from #37133 to document as much as I can.
To start, I think a good idea is to recall the basic need and understanding.
Rights can be set as a matrix system:
resource 1
resource 2
resource 3
user 1
view/update
view
deny
user 2
view
create/manage
user 3
view
view
Next, understanding the 3-states and their precedence:
DENY : unanimous, it's forbidden not matter how many ALLOWs you have should they be direct or via hierarchy
ALLOW : if not specifically denied, access is granted
Not Set :
if there's an ALLOW through hierarchy, then allowed
otherwise, denied
From there we need to define policies and permissions.
My logic made me write the policies horizontally, such as:
Since permissions are unanimous, all policies are joined with a logic AND, nothing works as expected.
If we look at the policies vertically, we get this:
allow_res1.view : user1 or user2 or user3
allow_res1.update : user1
allow_res2.view : user1
deny_res3.all : user1
allow_res3.manage : user2
allow_res3.view : user3
This solves most of the issues, though sometimes fairly verbose.
Adding decision logic could enhance permission management but MUST respect the 3-state precedence, if a user gets an explicit DENY then it overcomes any other ALLOW for the user.
I think that before going too deep into the policy/permission logic, we need to solve scope/role collisions. <-- let me know how I can report this
Activity
NickT-78 commentedon Feb 11, 2026
Hi,
I'm deploying KeyCloak with FGAPv2 in a production environment subject to ISO27001 and have some use-cases. @vramik sent me over here from #37133 to document as much as I can.
To start, I think a good idea is to recall the basic need and understanding.
Rights can be set as a matrix system:
Next, understanding the 3-states and their precedence:
From there we need to define policies and permissions.
My logic made me write the policies horizontally, such as:
allow_user1deny_user1allow_user2allow_user3And the permissions vertically, such as:
perm_res1.view:allow_user1,allow_user2,allow_user3perm_res1.update:allow_user1perm_res2.view:allow_user1perm_res3.view:deny_user1,allow_user3perm_res3.create_update:allow_user2Since permissions are unanimous, all policies are joined with a logic AND, nothing works as expected.
If we look at the policies vertically, we get this:
allow_res1.view:user1oruser2oruser3allow_res1.update:user1allow_res2.view:user1deny_res3.all:user1allow_res3.manage:user2allow_res3.view:user3This solves most of the issues, though sometimes fairly verbose.
Adding decision logic could enhance permission management but MUST respect the 3-state precedence, if a user gets an explicit DENY then it overcomes any other ALLOW for the user.
I think that before going too deep into the policy/permission logic, we need to solve scope/role collisions. <-- let me know how I can report this
NickT-78 commentedon May 26, 2026
New point on the clients.
Users in
supervisorsgroup cannot edit ClientsUsers can update client information (description, urls, ...) but cannot modify anything in advanced tab.
Can change some settings

... but not others

While realm administrator can.