Deny rules and exceptions
A deny policy prohibits access for the identities it matches. It wins over every grant policy and over access added by a request or an administrator. A policy exception spares one access item from one deny, with a recorded approver, reason and optional expiry.
A deny acts in two places. It removes or reviews access a matching identity already holds, and it checks new access at the moment someone requests it or an administrator adds it.
Create a deny policy
You need policy.modify to create and edit a deny and policy.activate to roll it out.
- Go to Governance > Policies and select New policy.
- Enter a Name, set Type to Deny, and select Create policy. The type is fixed after creation.
- Under Condition, choose who the deny applies to. The entries work as they do for a grant policy. See Who a policy applies to.
- Under Effects, select Add effect and choose what to deny.
- Review Deny defaults, then select Save & stage and preview the rollout.
A deny created in the dashboard starts with On deny set to Park for review (keep until green-lit) and Request gate set to Advisory (warn, allow). With these settings, rolling it out doesn't remove access or block requests until you choose stricter settings.
Choose what to deny
Each effect denies one of three things:
- Specific Grants on a resource. Choose the Resource, select Add Grant under Grants to deny (optional), and pick each Grant. For a Grant kind with qualifiers, Match specific qualifiers is off by default and the deny covers every qualifier value for that target. Turn it on to deny only the values you enter.
- A whole resource. Choose the Resource and add no Grants. The deny covers the account and everything on it.
- Every resource. Select Deny all resources (*). To spare a resource, select Add carve-out and choose the Spared resource. A carve-out spares the whole resource.
A deny also covers access a Grant needs first. When a resource adds required access automatically, a deny on that required access covers the Grant that needs it, and the request check names the access it was blocked on.
What the deny does to existing access
On deny sets what happens to access a matching identity already holds.
| Option | Effect |
|---|---|
| Revoke immediately | Owlie removes the access on the next evaluation. |
| Park for review (keep until green-lit) | The access stays and appears in the Review Queue. An administrator removes it or allows it with an exception. |
| Submit a revoke request | Not available yet. The option is listed but can't be selected. |
Deny defaults sets On deny and Request gate for the whole policy. Each effect has the same two fields, which start on Inherit default. Set them on an effect to override the policy default for that effect. If neither the effect nor the policy sets a value, Owlie revokes immediately and blocks requests.
Whatever On deny says, a matching deny blocks new access at once. A parked deny keeps what the person already has and stops them getting more.
Delay the removal
A grace window keeps existing access for a while after the deny starts to apply. There are two places to set one:
- The policy's Revocation routing > Delay applies to everything the deny covers. See Revocation routing and safeguards.
- A whole-resource effect has its own When access they hold is removed field, which overrides the policy's delay for that effect. Choose As the revocation routing says, At once, or After a number of days, and enter Days kept (1 to 366 whole days).
When the deny's condition names exactly one lifecycle state, a switch such as Count from the termination counts the days from the person's move into that state. With the switch off, the days count from when the deny first applies to them. This is how a leaver's mailbox is kept for 30 days after termination. The lifecycle pages set these windows for you. See People lifecycle.
An effect with After a number of days must be the only effect that covers its resource. If the same policy also denies all resources, add a carve-out for the held resource.
If the person stops matching the deny before the window ends, nothing is removed.
What the deny does to new access
Request gate sets how the deny treats a request for access it covers.
| Option | Effect on a request |
|---|---|
| Advisory (warn, allow) | The requester sees a warning and the request can proceed. Owlie records an exception for the access it grants. |
| Blocking (needs an exception) | The request can't be fulfilled until someone with policy.exception.approve approves a policy exception for it. |
The requester sees the result before submitting, and Owlie checks again before it fulfills the request. The check covers the account, the Grants selected, bundle contents, and the access those Grants need first. When several denies cover an item, one blocking deny without an exception blocks it.
If Owlie can't evaluate a deny's condition yet because it is still missing data from the connected system, the request waits without asking for an exception. It continues after the next successful sync.
An administrator's direct add goes through the same check with one difference: a warning must be confirmed before the add proceeds. See Policy checks when you add access directly.
Approve a blocked request
A request stopped by a blocking deny appears under Governance > Exceptions, on the
Approvals tab. The tab is available to administrators with policy.exception.approve.
- Find the request. The row shows the resource and the denies that block it.
- Select Approve exception.
- Optionally enter a Reason and an Expires (optional) date. With no expiry, the exception lasts until someone revokes it.
- Select Approve exception.
You can't approve an exception for your own request. On approval the request resumes. When provisioning grants the access, Owlie records the exception on it, so the access and its exception arrive together.
The approval covers the access and the deny version you saw. If the deny is changed to cover something else, or a new version of it is rolled out before the request is fulfilled, the request is blocked again.
How an exception works
An exception belongs to one access item, such as Priya Nair's GitHub account, and names one deny. That deny skips the item. Any other deny that covers the same item still applies.
- An exception follows the deny through later edits. It stays in force until it expires or is revoked.
- When an exception expires, the deny applies again on the next evaluation, through the deny's own On deny setting.
- An exception is attached to the access, so it ends when the access does. If the access is removed and later granted again, the new access has no exception.
- An exception spares access from a deny. It isn't a reason to have the access. If the grant policy or request behind the access ends, the access is removed as usual.
Exceptions come from three places, shown in the Source column:
| Source | Created when |
|---|---|
| Request exception | Someone approves a blocked request on the Approvals tab. |
| Deny-review allow | An administrator selects Allow for a parked deny in the Review Queue. |
| Advisory gate | An administrator confirms a warning on a direct add, or a request proceeds past an advisory deny. |
Inspect and revoke exceptions
Governance > Exceptions > Exceptions lists every live exception with its identity, item,
deny policy and version, source, expiry and reason. Never in the Expires column means the
exception has no expiry. You need policy.read to see the list.
To end an exception early, select Revoke, then Revoke exception. This needs
policy.exception.approve. The deny applies again on the next evaluation, and access that only the
exception protected is removed or parked as the deny's On deny setting says.
Disable or delete a deny
On the Policies list, the row's actions menu has Disable policy and Delete policy. Either one stops the prohibition, and Owlie evaluates the affected identities again. A grant policy that still matches grants the access again. Requests that were waiting on the deny continue.
The built-in deny for terminated identities is a system policy. You can edit or disable it, but the menu shows System policy cannot be deleted.