> For the complete documentation index, see [llms.txt](https://docs.openiam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openiam.com/solution-architecture/governance/request-time-policy.md).

# Deciding access at request time

Whether any of your access rules belong at request time rather than in the entitlement model — what a policy can express that a role cannot, what it costs to run, and what this release decides with on

**Applies to:** OpenIAM 2026.8.1

## What this is, and when you need it

Every other decision in this part is about **what a person holds**: which role carries which access, which mechanism grants it, who reviews it. This page is about the smaller set of rules that cannot be expressed that way at all — the ones that depend on the circumstances of a particular request rather than on anything recorded against the person.

You need this page when a requirement arrives that does not fit an entitlement. "Contractors may reach this application, but only during working hours" is the canonical shape: it is not a role you can grant, because the answer changes at five o'clock without anybody's membership changing. The decision is whether to express such a rule as policy-based access control, and what accepting that costs you.

Read [How access gets granted](https://docs.openiam.com/solution-architecture/governance/how-access-is-granted.md) first. Most requirements that sound like they need a request-time policy are better served by a rule-driven grant, and the two are easy to confuse.

## The decision

Four places a conditional access rule can live. The question is which one owns each rule, decided per rule and written down.

| Where the rule lives                                                                                   | What decides it                                                                                                                                                    | What it costs                                                                                                                                             | What it buys                                                                                                                        |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **In the entitlement model** — a role or group somebody holds                                          | Membership, granted by any of the four mechanisms in [How access gets granted](https://docs.openiam.com/solution-architecture/governance/how-access-is-granted.md) | The condition has to be expressible as a population. A rule that changes by hour of the day is not a population                                           | Everything downstream works: certification attests it, segregation of duties reasons about it, a reviewer can see it                |
| **As a rule-driven grant** — a business rule that adds or removes the entitlement as attributes change | A condition tree over governed identity data, evaluated when the record changes or on a sweep                                                                      | The deciding attribute has to be governed and present; a condition that cannot be evaluated runs the removal set                                          | Access follows the person. Still an entitlement afterwards, so governance still sees it                                             |
| **As a request-time policy** — policy-based access control                                             | A policy evaluated at the moment of the request, over the user, what they are reaching for, and the circumstances                                                  | A policy language your team has to learn, a data-quality dependency sharper than the rule engine's, and a decision that governance does not see as access | Conditions no membership can express: the hour, the day, the entry point, an attribute combination evaluated fresh on every request |
| **In the application itself**                                                                          | Whatever the application enforces natively                                                                                                                         | The rule is invisible to OpenIAM and to every review that runs on it                                                                                      | The only option for a rule this release cannot express, and sometimes the honest answer                                             |

## This is not a fifth way to grant access

The most expensive misreading of policy-based access control is to treat it as another grant mechanism. It is not, and the distinction has governance consequences.

**A policy grants nothing and revokes nothing.** It produces an allow or a deny for one request and writes a decision record. No membership is created, none is removed, and nothing about what the person holds changes. Entitlements remain the whole record of access, and policies read them as attributes — a policy can ask whether a user holds a role without that role being what decides the request.

The consequence follows directly: **a certification campaign cannot attest to a policy.** Reviewers see entitlements, because entitlements are what people hold. If a control is expressed as a policy, the evidence that it worked is the decision log, not a campaign — a different artefact, produced by a different process, defended to an auditor in different terms. Segregation of duties is the same story: conflicts are detected between entitlements, so a separation enforced by a request-time policy is enforced outside the mechanism that proves separation.

That is not an argument against policies. It is the reason to keep the set of them small and deliberate, and never to move a rule out of the entitlement model that the entitlement model could carry.

## What a policy can express

Policies are written in Cedar, an open-source authorization policy language, and evaluated by a dedicated service against its own database. Two engine semantics decide everything else, and both are Cedar's rather than OpenIAM's:

* **Forbid wins.** A policy that forbids a request denies it, whatever else permits it.
* **Default deny.** A request nothing permits is refused. Matching no policy at all is a denial, not an allowance.

What a policy is given to reason about:

| Part of the request | What OpenIAM supplies                                                                    |
| ------------------- | ---------------------------------------------------------------------------------------- |
| **Principal**       | The user the request is made by, with the attributes on their record                     |
| **Resource**        | What is being reached — a group, role, organization or resource, or another user         |
| **Action**          | An access right defined in your deployment                                               |
| **Circumstances**   | The hour of day, the day of week, and which content provider the request arrived through |

The circumstances row is the reason to reach for a policy at all. None of those three is a property of a person, so none of them can be a membership, and no grant mechanism can express them.

**Users are the only principal this release exposes to a policy.** Groups, roles, organizations and resources appear on the resource side of a decision, and a user can be the resource of a policy about who may modify whom, but the principal of every evaluation is a person.

## What it costs

Three costs, in the order they bite.

**A policy language is a skill dependency.** Cedar is small and readable, but it is a language, and a policy set nobody on the operating team can read is a control nobody can change under pressure. Decide who owns policy authoring before the first policy, the same way you would for the scripts in a provisioning design.

**An attribute that is not there is an error, not a false.** Reading an absent attribute makes the evaluation error rather than evaluate to false, and an errored evaluation is not a decision. This is the same data-quality dependency the business-rule engine has, one degree sharper: the rule engine resolves an unevaluable condition to false and runs the no-match action, while a policy that reads a missing attribute produces no answer at all. Every optional attribute has to be guarded explicitly in the policy text. A population your feed does not fully cover is a population your policies behave unpredictably for.

**The hour of day is UTC.** A policy reading "working hours are nine to five" enforces nine to five UTC for everybody, wherever they are. It does not fail — it governs the wrong hours, quietly. For any organization outside UTC the numbers have to be offset deliberately, and the intended local window recorded alongside them.

## What this release decides with a policy

**In 2026.8.1, policies are authored, simulated and logged rather than served.** The engine, the authoring surface, the simulator and the decision log all ship and work: a policy can be written, compiled, evaluated against real users and resources, staged through shadow and partial enforcement, and inspected afterwards. What this release does not include is a caller. No shipped product operation consults a policy in the course of normal use, and **no interface is published for requesting a decision from outside the platform** — the HTTP surface covers authoring policies, running simulations and reading the decision log, and stops there. An application of your own cannot be pointed at OpenIAM as its decision point in this release.

The design consequence is specific, and it cuts both ways. **Do not place a control that must refuse a request on this release's policy engine, and do not design an application integration against it.** Anything that has to block belongs where blocking already works: the entitlement model, the access gateway, or the application itself. But the modeling is real work that does not have to wait — a policy set can be authored and simulated against your own population now, and the simulator uses the same decision path a served request would, so what it reports is what the engine would decide.

Treat that as the sequencing advice it is. The expensive part of policy-based access control is never the syntax; it is discovering which of your requirements genuinely need it, and how your identity data behaves when a policy reads it.

## What we recommend

**Start from the assumption that a requirement belongs in the entitlement model, and make it earn its way out.** The test is whether the condition can be a population. If it can, it should be — governance sees it, reviewers can attest to it, and the operating cost is one you already carry.

**Reserve request-time policy for conditions that are genuinely about the request**: the hour, the day, the entry point, or a combination of attributes evaluated fresh. Those are the cases where no membership can be correct, because the answer changes without the person changing.

**Keep the policy set small enough to reason about.** Default deny and forbid-wins mean the interaction between policies is where surprises live, and a set of a dozen policies interacts in ways a set of three does not.

**Prove your attribute coverage before you write a policy that depends on an attribute.** The population a policy behaves incorrectly for is exactly the population your feed does not fully cover, and neither the policy nor the decision log will announce it.

**Design the evidence at the same time as the policy.** Decide what an auditor will be shown for a control enforced this way, and confirm the decision log satisfies it. A control whose evidence is a log nobody has agreed to accept is a control you will re-implement.

The circumstance that changes the answer is an estate whose identity data is not yet trustworthy. Where Part 2's decisions are still settling, keep conditional access in the entitlement model, where a wrong attribute produces a visible wrong membership rather than an unpredictable refusal.

## What OpenIAM does not do here

* **This release does not include a caller for the decision engine.** No shipped product operation consults a policy during normal use.
* **This release publishes no interface for requesting a decision from outside the platform.** The HTTP surface covers policy authoring, simulation and the decision log. An external application cannot use OpenIAM as its authorization decision point.
* **A policy is not visible to governance as access.** Campaigns attest to entitlements, and segregation-of-duties conflicts are detected between entitlements. Neither sees a policy.
* **Users are the only principal type a policy can be written about.** Non-human identities are not a principal in this release.
* **The circumstances supplied to a decision are fixed.** The hour, the day and the content provider are what a policy can condition on; there is no facility to supply your own context attribute on a request.
* **The hour of day is UTC only.** There is no per-organization or per-user time zone applied to it.
* **An unevaluable policy produces no decision.** There is no safe-mode fallback that treats a missing attribute as false.

## Related

* [How access gets granted](https://docs.openiam.com/solution-architecture/governance/how-access-is-granted.md) — the four mechanisms that do grant access, and the rule-driven one this page is most often confused with.
* [Designing a certification programme](https://docs.openiam.com/solution-architecture/governance/certification-programme.md) — what a campaign can attest to, and therefore what a policy cannot be evidence for.
* *Decide access with policies* in the Administration Guide — the policy model, authoring, simulation and staged rollout, configured.
* Part 2, *Choosing your authoritative sources* — whether the attributes a policy would read are governed at all.
* [Choosing your authoritative sources](https://docs.openiam.com/solution-architecture/identity/authoritative-sources.md) — whether the attributes a policy would read are governed at all.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openiam.com/solution-architecture/governance/request-time-policy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
