# Permission flow

"Why can this person reach that application?" is the question behind most access
reviews, and the answer is rarely in one place. Permission flow draws the whole
chain, from the group a person belongs to, through the claim sent at sign-in, to
the application and the permission, so you can see which link to fix, or whether
the access should exist at all. For a service account, the same view shows which
workloads use which secrets to reach which targets, which helps you see what a rotation may affect before you start it. Links a connector does not report show as gaps.

**Permission flow** explains how an identity got its access. It is read-only:
nothing in it changes access. Every link Mesh knows is drawn. A link Mesh does not
know is shown as a gap with a reason.

There are two flows: one for people and one for non-human identities.

## Permission flow for a person

Open an [identity dossier](./identity-dossier.md) and switch to **Permission flow**.
Mesh draws five lanes from left to right:

**This identity** → **Source group** → **Claim sent at sign-in** → **Application** → **Permission**

![The permission flow of a person, drawn from this identity through source groups, the claim sent at sign-in and the application to permissions](/img/user-guide/permission-flow/person-permission-flow.png)

The heading reads **N access paths · N applications**. Select a card to open the
**Evidence** panel, titled **Why <name> can reach <app>**. It lists the
paths through that card and the time Mesh last recorded each one. The panel is
read-only.

![The Evidence panel under a permission flow, explaining step by step why the person can reach the selected application](/img/user-guide/permission-flow/evidence-panel.png)

### Link statuses

| Status | Meaning |
|---|---|
| **Collected** | Mesh read the link from a source. |
| **Not collected** | The connector could read it but has not. |
| **Not provided by the source** | The source does not report it. |
| **Conflicting** | Sources disagree. For example, Microsoft Entra ID does not pass application assignments through nested groups. |

### Permission labels

| Label | Meaning |
|---|---|
| **Collected** | Mesh knows the permission and what it allows. |
| **Actions known** | Mesh knows the actions the permission allows. |
| **Role name only** | Mesh knows the role name but not what it allows. |
| **Permission unknown** | The source gave access to the application but no permission. |

Other badges: **Can activate (PIM)** for a role the person may activate but does
not hold now, **Broader than needed** on a claim that sends more groups than the
application uses, **Partly read** when Mesh shows all it could read, and **No link**.

### Gaps

A gap card says why a part of the chain is missing, for example **Group not
recorded**, **No identity-provider group**, **Account in the app**, **Assigned
directly**, **Signs in directly**, **Claim not collected**, **AWS role not trusted**,
**AWS not collected**, **Default access** or **N unnamed permissions**.

### The claim step

Mesh reads the claim configuration for Microsoft Entra ID applications and Okta
SAML applications. The claim step shows what **would be sent** at sign-in, as
configured. It is not a record of a specific sign-in. For Entra it lists the
groups claim, roles claim and optional claims, and how many groups are sent
against how many the application uses. For an AWS role named in a claim, the
card reads **Assumes the AWS role X, through Y**.

### What a permission allows

For AWS IAM, selecting a permission shows **What this permission allows**: effect,
actions, resource, scope, and condition. These are the actions the role allows,
not actions taken. See [Permission usage](./permission-usage.md) for use. Other
sources show the permission name only.

### See who holds a permission

From the evidence, select **See everyone with <permission>** to open the
application view. Pick a permission, search identities, and read each identity,
its source account, **How they got it** (direct assignment, via a group, or an
account in the app), and an **Open flow** link to that identity's permission flow.
Filter the list by how they got it, source or permission. Select **Show people
who can activate** to include people who can activate a permission but do not hold
it now.

![The application permissions view, listing the identities that hold each permission, how they got it, and a link to open each one's permission flow](/img/user-guide/permission-flow/who-holds-a-permission.png)

### Filter and limits

Use **Filter access paths** to filter by application, source or link status.
**Show deleted (N)** includes paths through deleted groups. When a flow is large,
a note reads **Showing first N of M access paths**.

### Removed access

Removed access disappears after Mesh re-checks it in full. Mesh does not remove access based
on a failed or first collection, and it confirms removals before applying them. Deleted users stay as **Terminated** for audit. For Okta,
ServiceNow CMDB and Universal REST connectors, the **Revocation check interval**
setting controls how often removed access is fully re-checked. It is daily by
default, and you can choose a longer interval. On-premises sources need a current
edge agent to prune removed access.

## Permission flow for a non-human identity

Open a non-human identity and select the **Permission flow** tab, or select **See
permission flow** on an open risk. Mesh draws four lanes: **Workload**, **Secret**,
**NHI** and **Target**.

Each link shows **Collected**, **Stale**, **Not provided by the source** or **Not
collected yet**. A gap card names what is missing, such as **Workload not collected
yet** or **Target not collected yet**. Evidence reads <source> · last written
<time>. A banner warns when some links are not collected or are stale, so the
flow may be incomplete.

The flow covers the authentication path only: which workload uses which secret to
reach which target. It does not show permissions inside the target. A rotation
note tells you what rotating a secret would interrupt. It says **would** only when
every link is collected, and **may** otherwise.

AI agent identities do not have the
tab. Many connectors do not report workload, secret and target links, so expect
gaps. See [Non-human identity coverage](../connectors/non-human-identity-coverage.md).

## Messages you may see

- **No access paths for this identity.**
- **You don't have access to this identity's permission flow.**
- **Could not load the permission flow.** Select **Retry**.
