# Permission usage

Most identities hold more access than they use. Permission usage shows which
granted permissions were used, which were not, and which Mesh cannot tell. Use it
to find access you can remove with confidence, and to avoid removing access that
is still in use.

**Permission usage** compares what an identity is allowed to do with what it did.
It is read-only. Nothing in it changes access.

It appears as the **Permission usage** card on an identity's **Details** and
**Permission flow** views, with a **What Mesh can observe** panel showing which
sources report usage. AI agents have a **Permission usage** card with **Resource**,
**Last used** and **Uses**.

> **note**
Mesh shows no usage until a connector's usage option is on. Usage options are
off by default, and some need a license.

## The card

Tiles count **Granted**, **Used**, **Unused** and **Not observable**. The table
shows **Permission**, **Application**, **Verdict**, **Last used** and **Why**.

![The Permission usage card, with counts of granted, used, unused and not observable permissions and a table of verdicts](/img/user-guide/permission-usage/permission-usage-card.png)

| Verdict | Meaning |
|---|---|
| **Used** | A successful use was recorded in the window. |
| **Unused** | No successful use in the window, and every source needed was observing, current, and watched for the whole window. |
| **Not observable** | Mesh cannot tell. Not counted as unused. |
| **Usage check failed** | The last collection from the source failed. Not counted as unused. |
| **Out of date** | The source has sent no data for more than 48 hours. Not counted as unused. |
| **Usage unknown** | Mesh has no usage information. |

The window is 90 days, and 365 days where a source supports it. AI agents use 90
days. Usage history is kept for 365 days. The **Why** column explains each
verdict, for example that usage collection is not turned on, the source's license
does not include activity logs, Mesh has not been given permission to read them,
or Mesh has been watching only since a date and needs N more days to cover the
window.

> **note**
Mesh can call a permission unused only after it has watched for the full window.
Microsoft Entra ID keeps about 30 days of sign-in history, so a 90-day verdict
needs about 60 more days after you turn usage on.

## What each source reports

![The What Mesh can observe panel, listing each usage source for the tenant with its status and the period it has been observed](/img/user-guide/permission-usage/what-mesh-can-observe.png)

| Source | Grain | What it needs |
|---|---|---|
| **Entra sign-ins** (interactive, non-interactive, service accounts) | Per application, not per scope or role | **Roles, permissions and usage** on; `AuditLog.Read.All`; Entra ID P1. Service principals and agents also need Entra ID P2 or the **Microsoft Defender XDR** option (Defender license and `ThreatHunting.Read.All`). **OAuth consent grants** needs `DelegatedPermissionGrant.Read.All`. |
| **Okta sign-ins** and **Okta token use** | Per application | System log access (`okta.logs.read`). The first collection reads back 90 days. Token use is optional. |
| **AWS last-accessed data** | Service and action | The **IAM permissions and usage** option, plus `iam:GenerateServiceLastAccessedDetails`, `iam:GetServiceLastAccessedDetails` and the credential-report actions. Checked about once a day. |
| **Google token use** | Per application | Google Workspace connector. |
| HR and other systems | None | These sources do not report use, so the result is **Not observable**. |

The coverage panel shows each source as **Observing**, **Out of date**, **Partial**,
**Connector turned off** (the connector's usage option is off), **Not enabled**, **Not licensed**, **Permission missing**, **Not supported** or
**Failed**. Where Mesh cannot be specific, it says so, for example **Service level
only** or **Judged for the whole account, not per permission**.

Actors are split into **People**, **People through an AI agent app**, **The AI
agent itself**, **Service accounts** and **Not classified**.

## Related

- [Permission flow](./permission-flow.md)
- [Identity dossier](./identity-dossier.md)
- [Non-human identity coverage](../connectors/non-human-identity-coverage.md)
