> 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/administration-guide/pbac/trace-a-decision.md). Agents can also search and read this documentation through its [MCP server](https://docs.openiam.com/~gitbook/mcp).

# Trace a decision

Find why one request was allowed or refused, read which policy determined it, and get at the per-policy participation detail the decision screen does not show.

**Applies to:** OpenIAM 2026.8.1

## What this is, and when you need it

Somebody was refused and wants to know why, or a shadow rollout needs reviewing before it is enforced. The **Decision Log** shows every PBAC decision the engine has served, newest first, and names the policies that determined each one.

Simulation runs are not shown here — they govern no real access.

## At a glance

|                          |                                                                                                           |
| ------------------------ | --------------------------------------------------------------------------------------------------------- |
| **You will end up with** | The decision for a specific request, and the policy that caused it                                        |
| **Where**                | **Administration → PBAC Policies** → **Decision Log**; the same events in **Administration → Log Viewer** |
| **You need first**       | The principal id or resource id, and roughly when the request happened                                    |
| **Takes**                | Minutes                                                                                                   |
| **Reversible**           | Read-only                                                                                                 |

## The decision log is a view over the audit log

This is the fact that makes the rest useful: PBAC decisions are **not a separate store**. They are recorded in the OpenIAM audit log as `PBAC_REQUEST` events, and this screen is that log narrowed to policy decisions.

So everything true of audit events is true of these: they appear in the [Log viewer](https://docs.openiam.com/administration-guide/operations/find-audit-evidence.md), they can be forwarded to syslog like any other event, and they age out under the same retention rules — see [Audit actions and retention](https://docs.openiam.com/administration-guide/reference/audit-actions-and-retention.md).

## Find the decision

Filter by principal id, resource id, decision (`ALLOW` or `DENY`) and a from/to time range, then click **Search**. Filters apply on search rather than as you type.

**A request that no activated policy reaches leaves no entry.** When no policy applied to the request, was observed in shadow, or was held back by a partial rollout, the engine evaluated nothing and the caller's own entitlement checks decided it. That keeps the log to real decisions when the Access Gateway asks about every resource it proxies. An empty log for a resource therefore means PBAC has no policy for it, not that every request was allowed. The exception is a request that declares a privacy purpose itself: it is logged even when no policy names that purpose.

**Privacy decisions** — those where a policy requires consent for a purpose — are in the same log. Set **Class** to `Privacy` and, to narrow further, enter the **Purpose id**. Their **Decision** can also be `CONDITIONAL` or `REVIEW_REQUIRED`; the **Purpose**, **Obligations** and **Duration** columns fill in; and the **Class** column shows **Context**, where the consent state came from. The audit entry adds the subject reference, the consent sequence number and the contract version. See [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md#decision-log-and-evidence).

From 2026.10.2 the decisions the MCP server asks for can also be filtered by **Invoking system**, **Agent**, **Tool** and **Gate mode**, an **MCP** column shows the agent behind a call, and a **Policy impact** card estimates what a policy would change for MCP tool calls. From 2026.11.1 the card counts, for a policy still in `SHADOW` chosen by name, the MCP tool calls it was observed on and how many of them promoting it would change, and every new tool call is recorded with the gate mode **Enforce**, because the MCP server always applies the decision; **Off** and **Shadow** find only the events of an earlier server. See [Read the decision log and the impact view](https://docs.openiam.com/administration-guide/federation/mcp-server/mcp-policies.md#read-the-decision-log-and-the-impact-view).

<figure><img src="https://2965242200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0uHWHRgcad6P03ehqgmX%2Fuploads%2Fgit-blob-0634ef80ab12f5a075ece69e9abc6e0805a39487%2Fpbac-decision-log-mcp-filters.png?alt=media" alt="The Decision Log filters with Invoking system set to MCP server and Tool to get_user, next to Principal id, Resource id, Decision, Class, Purpose id, Would change, From, To, Agent and Gate mode"><figcaption></figcaption></figure>

| Field                             | What it records                                                                                                                                                                                                                                                                                                                                                                   |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **When**                          | The decision timestamp                                                                                                                                                                                                                                                                                                                                                            |
| **Principal / Resource / Action** | The fully-qualified Cedar identities — `Openiam::User::Human::"3000"`                                                                                                                                                                                                                                                                                                             |
| **Requested by**                  | The caller that asked for the decision                                                                                                                                                                                                                                                                                                                                            |
| **Decision**                      | `ALLOW` or `DENY` — the decision that was **served**. A tool call on the MCP server can also be served as `UNAVAILABLE`, when the service could not be reached. Events written by an earlier MCP server can show `NO_POLICY_ALLOW` or `NO_POLICY_DENY`, which it no longer produces                                                                                               |
| **Shadow / RBAC**                 | What the service would serve if the shadow policies were promoted, as `shadow: ALLOW` or `shadow: DENY`, and the role-based access control (RBAC) path's decision when the caller reported one; marked **would change** when either differs from the served decision. Empty when no policy is in shadow and no RBAC decision was reported, and on the MCP server's tool-call rows |
| **Determining policies**          | The determining policies, so a refusal traces to the rule that caused it. For a tool call on the MCP server the column shows the call's `MCP_POLICY_IDS`, which holds the same thing: the permits that admitted an allowed call, the forbids that refused a denied one, and nothing for a refusal by default deny                                                                 |

<figure><img src="https://2965242200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0uHWHRgcad6P03ehqgmX%2Fuploads%2Fgit-blob-6c263cf19a1e0f2d32140da1208c1175701269fd%2Fpbac-decision-log-mcp-columns.png?alt=media" alt="Three get_user rows of the decision log, scrolled to the right: each shows the tool, the Enforce gate mode and the agent&#x27;s ID in the MCP column; the refused row lists MCP-05 under Determining policies, and the two allowed rows show the obligation MASK(fields=email;pattern=INITIALS) with MCP-02,MCP-06 and MCP-01,MCP-06"><figcaption></figcaption></figure>

## What the screen does not show

Each audit entry records more than the columns display. Per applicable policy, it records **how that policy participated** — applied, observed as shadow, or skipped as outside a partial rollout — together with the enforcement mode in force at the time, including the percentage for a `PARTIAL` policy.

To read it, open the underlying audit entry in the Log viewer.

{% hint style="info" %}
**The audit result records whether the evaluation succeeded, not whether it allowed.** A `DENY` is a perfectly successful decision — it is the engine working. A *failure* means the engine could not evaluate the request at all, which is a different problem with a different cause, usually an unguarded attribute.

Do not read failures as denials when counting refusals, and do not read denials as errors when hunting for faults.
{% endhint %}

## What promoting the shadow policies would change

Unlike the participation detail, this is on the screen. The service evaluates the enforced and shadow policies together, which is what it would serve if you promoted them, and the **Shadow / RBAC** column shows that decision; **Would change** set to **Only differing outcomes** lists the requests where it differs from what was served. It is the difference between "this request was denied" and "this request was denied, and promoting the policy you are watching would have allowed it". Every policy in `SHADOW` is promoted together in that answer, and the audit entry names the policies that determined it. Before 2026.10.2 the shadow policies were evaluated on their own, so an older entry reads a forbid in shadow as refusing every request it did not forbid.

## Verification

| What to check                                                 | How                                                                                                                                                                                                                                         |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| You are looking at the served decision                        | The **Decision** column is always what was served, never what promoting the shadow policies would serve                                                                                                                                     |
| Which rule refused a request                                  | The **Determining policies** column names the determining statements, for an MCP tool call as for any other request. A `DENY` that names none is a refusal by default deny, which an MCP tool error reports as `no policy permits the call` |
| Whether promoting the shadow policies would change a decision | The **Shadow / RBAC** column marks it **would change**; set **Would change** to **Only differing outcomes** to list every such request                                                                                                      |
| A decision is genuinely absent, not filtered out              | Widen the time range and clear the decision filter before concluding nothing was recorded                                                                                                                                                   |
| The same events from the audit side                           | Search `PBAC_REQUEST` in **Administration → Log Viewer**                                                                                                                                                                                    |

## When it goes wrong

| Symptom                                                                    | Cause                                                                                        | Fix                                                                                                                                                    |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| A request you expected is not in the log                                   | The time range or a filter excludes it, or no policy was applicable so nothing was evaluated | Widen the range first. If it is genuinely absent, no activated policy reached the request — see [Find the decision](#find-the-decision)                |
| A decision names no determining policy                                     | The request matched nothing and was denied by default                                        | Expected. Cedar denies by default; add a policy that permits it if it should be allowed                                                                |
| The log shows failures rather than decisions                               | The engine could not evaluate — typically an unguarded optional attribute                    | [The policy model](https://docs.openiam.com/administration-guide/pbac/policy-model.md#the-attribute-rule-that-causes-most-errors)                      |
| The **Shadow / RBAC** column does not show one shadow policy's own outcome | It shows what promoting every policy in shadow together would serve                          | Open the audit entry for the policies that determined it, or keep only that policy in `SHADOW` while you review                                        |
| Decision entries stopped appearing                                         | Retention aged them out, or the audit pipeline is not running                                | [Audit actions and retention](https://docs.openiam.com/administration-guide/reference/audit-actions-and-retention.md); confirm the audit service is up |
| Simulation results are missing from the log                                | Simulations are never logged here, by design                                                 | Read them on the [Simulation](https://docs.openiam.com/administration-guide/pbac/simulate-a-policy.md) tab                                             |

## Related

* [Roll a policy out safely](https://docs.openiam.com/administration-guide/pbac/roll-out-a-policy.md) — divergence review, which is read here
* [Find audit evidence](https://docs.openiam.com/administration-guide/operations/find-audit-evidence.md) — the general audit search these events sit in
* [Audit actions and retention](https://docs.openiam.com/administration-guide/reference/audit-actions-and-retention.md) — how long `PBAC_REQUEST` survives
* [The policy model](https://docs.openiam.com/administration-guide/pbac/policy-model.md) — why a failure is not a denial
* [Decide MCP tool calls with policies](https://docs.openiam.com/administration-guide/federation/mcp-server/mcp-policies.md) — the decisions a tool call is served and the impact view
* [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md) — what a privacy entry records, and what each outcome means


---

# 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/administration-guide/pbac/trace-a-decision.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.
