2016-11-29 15:30:53 +00:00
[[_policy_logic]]
2022-04-18 14:10:57 +00:00
= Positive and negative logic
2016-05-31 20:36:14 +00:00
2016-11-15 21:34:20 +00:00
Policies can be configured with positive or negative logic. Briefly, you can use this option to define whether the policy result should be kept as it is or be negated.
2016-05-31 20:36:14 +00:00
2016-11-15 21:34:20 +00:00
For example, suppose you want to create a policy where only users *not* granted with a specific role should be given access. In this case,
you can create a role-based policy using that role and set its *Logic* field to *Negative*. If you keep *Positive*, which
2017-10-09 06:38:46 +00:00
is the default behavior, the policy result will be kept as it is.