How access policies work
A policy is a standing rule about who should have access. A grant policy adds access for every identity that matches its condition. A deny policy prohibits access for the identities it matches. Owlie evaluates the active policies whenever an identity's details change, works out the access that identity should have, and sends the difference to provisioning.
For each identity, the access Owlie wants is everything a matching grant policy or another current reason supports, minus everything a matching deny covers. Other reasons are an approved request, access an administrator added directly, and access Owlie found in the connected system. See Why someone has access for how those reasons combine.
Applies to department is Engineering. Grants a GitHub account.
Applies to lifecycle state is Terminated. Denies the whole GitHub resource and revokes immediately.
Approved for this account against the deny policy above.
- Grant policyMatchesPriya's department is Engineering, so the policy keeps the GitHub account wanted.
- Deny policyNo matchPriya's lifecycle state is Active, so the deny doesn't cover her.
- ExceptionNoneNothing spares the account from the deny.
Priya should have the GitHub account.
The grant policy matches and no deny covers the account.
Nothing to send. The access Owlie records already matches the decision, so no operation is created.
Grant and deny policies
You choose the type when you create a policy under Governance > Policies, and it can't be changed afterwards.
A grant policy lists effects: a resource, and optionally specific Grants on it. With no Grants the effect grants the account alone. A grant policy has no end date. It keeps the access wanted for as long as the identity matches, so when a timed request for the same access expires, the access stays while the policy still supports it.
A deny policy lists the access a matching identity must not have: specific Grants, a whole resource, or every resource with named carve-outs. A deny grants nothing.
Several policies can cover the same identity. Grants add up, and denies subtract from the total. Owlie has no "exactly this access and nothing else" policy type. To express that, grant the access and deny the rest.
Deny wins
A deny that matches an identity removes the access it covers, whatever supports that access. It wins over every grant policy, over an approved request, and over access an administrator added directly. It also removes access Owlie only found in the connected system.
Three things keep a matching deny from removing access:
- An exception. A policy exception spares one access item from one deny. Another deny that covers the same item still applies. See Deny rules and exceptions.
- A review or a grace window. A deny set to park for review, or one inside a grace window, leaves access the identity already holds in place. That access stays until an administrator decides or the window ends. It still blocks new access straight away. See Revocation routing and safeguards.
- The condition no longer matching. When the identity leaves the deny's condition, or the deny is disabled or deleted, a grant policy that still matches grants the access again.
A deny also covers the access a Grant needs first. If a resource adds required access automatically, such as the organization membership an Auth0 organization role needs, a deny on that membership covers the role too.
Who a policy applies to
A policy's Condition has two lists. Identities matching any entry under Apply Policy To are included. Identities matching any entry under Except are then taken out. Each entry is one of:
| Entry | Matches |
|---|---|
| All identities | Every identity in the organization. It must be the only inclusion and can't be an exclusion. |
| Identity | One identity you pick. |
| Group | Members of a group, either Direct members only or Inherited (direct and inherited). |
| Role | Identities that hold an Owlie role. |
| Filter | Identities whose attributes meet the conditions you add, including custom attributes and lifecycle state. |
| Has access | Identities that hold access to a resource you pick. |
For example, Apply Policy To a filter on department equals Engineering, Except the group Interns, reads as "everyone in Engineering who isn't an intern". A condition with no inclusions matches nobody.
Conditions read current state only. Lifecycle state is an attribute like any other: Owlie derives it from HR data, and a condition such as lifecycle state equals Terminated is how offboarding rules are written. See Lifecycle state.
When a Has access entry depends on access Owlie hasn't finished reading from the connected system, the condition is unknown for that identity. Owlie then leaves things as they are: a grant policy adds no new access and removes none, and a deny starts no new removal. Owlie evaluates the identity again after the next successful sync.
When an identity stops matching
Owlie reacts to a change in an identity's details without anyone starting a workflow. When someone moves from Engineering to Finance, the Engineering grant stops matching, and Owlie decides whether the access it granted should go.
Access is removed only when nothing else supports it. If the person also holds the access through an approved request or a direct grant, the policy's On lapse with other access setting decides. The default, Leave (keep if held via another tier), keeps the access. Force revoke removes it anyway.
How the removal happens depends on the policy's Revocation routing. It can go ahead at once, wait out a grace window, or park in the Review Queue for an administrator. In every case Owlie checks the identity's current details again before it removes anything, so someone who matches again inside a grace window loses nothing. See Revocation routing and safeguards.
Policy decides, provisioning executes
A policy decides what access an identity should have and when a removal goes ahead. It doesn't touch the connected system. Owlie turns each decision into a provisioning operation: a grant, a revoke, or re-enabling an account for someone who was rehired.
Provisioning carries the operation out. Whether a revoked account is disabled or deleted is a setting on the resource, not on the policy. See Lifecycle and removal behavior. A policy decision is also not proof that the change landed. Check the policy's Rollout tab or the provisioning operation for that. See Provisioning and reconciliation.
When Owlie evaluates an identity whose access already matches the decision, it sends nothing.
Drafts, versions and rollouts
Only an active policy's active version is evaluated. Edits happen in a draft, and saving a draft changes nothing. Staging the draft creates a fixed version, and that version takes effect only after someone previews its rollout and confirms it. An edit to a live policy therefore never applies halfway. See Preview and activate policy changes.
Owlie ships a built-in deny for terminated identities, marked System in the policy list. You can edit it or disable it, but not delete it. The People lifecycle pages show it alongside the other steps for each lifecycle state.
Policies decide standing access. For one-time actions on a lifecycle change, such as sending a notice or handing over open work, use lifecycle reactions.