---
title: "Access reviews"
description: "Run access reviews of non-human identities: build a review from a scope, send each identity to its owner, answer from an inbox, and export signed evidence."
keywords: ["access review", "access certification", "user access review", "certification campaign", "reviewer inbox", "signed evidence", "unanswered review", "campaign definition"]
---

An access review asks the people accountable for each identity whether it still needs what it holds, by a deadline, with a reason for every answer. It is a [certification campaign](/nhi-security/delegation-and-certification#access-certification-campaigns) with a console screen: **Policies → Access reviews**.

<Warning>
An answer records a decision and changes nothing. "Revoke" means "this access should be removed": nobody's permissions change until a person removes them in the provider. There is no automatic revocation, on an answer or on a missed deadline.
</Warning>

## Build a review

**New review** (needs `certification:manage`) builds a draft campaign over identities from a scope:

| Field | What it does |
|---|---|
| Connectors | Only identities from these connectors. None chosen: all. |
| Kinds | Only identities of these kinds, for example **SSH key** for a review of SSH keys alone. None chosen: every kind. |
| Owning teams | Only identities owned by these teams. None chosen: any owner, or none. |
| Provider labels | `key=value` must match exactly; a bare `key` must be present. Labels are the AWS tags and Kubernetes labels kept on each identity. |
| Worst open finding | Only identities with an open finding at or above this severity. |
| Reviewer | A person or a team. Answers every identity that has no owner able to answer. |
| Who answers each identity | **Its owner, else the reviewer** (default), or **Always the reviewer**. |
| Days to answer | 1 to 180. |

Conditions are combined with AND; choices inside one condition with OR. Decommissioned identities are never included. **Preview scope** counts the matching identities and how many would go to their owner, without creating anything. **Create draft** creates the campaign with one item per identity. A campaign holds at most 2,000 identities; a larger scope is refused, so split it.

**Who answers.** With the default, an identity owned by a team goes to that team, and one owned by an active person goes to that person. It goes to the reviewer instead when the identity has no owner, when its owner's account is suspended or disabled, or when its owner is the person creating the review (nobody answers a review they created).

A draft asks nobody anything. **Open for answers** puts the question to the reviewers and is audited.

### Definitions: export and import

Every review built from a scope keeps its definition. **Export definition (JSON)** on the review downloads it; paste one into **Import a definition (JSON)** to build the next review the same way. The same definition is accepted by the API:

```json
{
  "version": 1,
  "name": "Q4 production service accounts",
  "statement": "Does this identity still need the access it holds?",
  "durationDays": 14,
  "reviewer": { "kind": "team", "teamId": "..." },
  "assignment": "owner_then_reviewer",
  "scope": {
    "connectorIds": ["..."],
    "ownerUserIds": [],
    "ownerTeamIds": [],
    "labels": [{ "key": "env", "value": "prod" }, { "key": "owner" }],
    "minSeverity": "high",
    "types": ["service_account"]
  }
}
```

A field the format does not know is refused, and every problem is reported with its path (for example `scope.connectorIds[0]: not an id`). Identifiers are this organization's, so a definition moves between reviews here, not between organizations. JSON only; YAML is not accepted.

## Answer

**My reviews** (needs `certification:review`) lists every unanswered item assigned to you or to a team you belong to, in open campaigns you did not create, soonest due first. An item due within 3 days is marked **Due in N days**; one past its date is marked **Overdue**. These reminders are shown in the console; no e-mail or chat message is sent.

On a review's page, each of your items has a reason box and **Keep** or **Revoke**. The reason is required for both answers, and an answer cannot be changed. There is no way to answer many items at once: each answer is one identity with its own reason, which is what makes the review evidence. A manager can select many unanswered items and **Reassign** them to another person or team at once; reassigning is not an answer.

**Close review** ends it. Unanswered items stay unanswered.

## When nobody answers

If the in-process scheduler is on (`DISCOVERY_SCHEDULER_ENABLED`), an hourly sweep marks a review **Overdue** on its due date and, seven days later, closes it and marks every unanswered item expired. Without the scheduler a review stays open until someone closes it.

After a review closes, the next policy evaluation raises a finding for every identity whose most recent review question went unanswered: policy `certification_unanswered`, kind `unreviewed_access`, medium (high when the identity holds administrative access), recommended action **remove permission**. It resolves when a later review keeps or revokes the identity with a reason. The finding is the recommendation; nothing is revoked.

## Evidence

Once a review is closed, its page offers:

- **Signed evidence (JSON)**: who was asked about what, each answer (`certified`, `revoked` or `unanswered`), who gave it, when, the reason, and the campaign's history. The evidence is a JSON text in `pack`, with a SHA-256 `digest` of it and an HMAC-SHA256 `signature` under a key derived from this deployment's `CREDENTIAL_ENCRYPTION_KEY`, named by `keyId`. Anyone can check the digest. The signature can be checked only with the key: send the whole file to `POST /api/v1/access-reviews/evidence/verification`, which answers `valid`, `digestMatches` and `signatureMatches`. Rotating the encryption key changes the key id, and older evidence then verifies only by its digest.
- **Evidence (CSV)**: the same rows for a spreadsheet, unsigned. Cells a spreadsheet would run as a formula are prefixed with `'`.

Evidence of an open review is refused (`409`), because answers can still change. Every download is recorded in the [audit trail](/nhi-security/governance-and-audit) as `certification_campaign.evidence_exported`.

## API

| Route | Permission | What it does |
|---|---|---|
| `POST /api/v1/access-reviews/scope-preview` | `certification:manage` | Count and sample a definition's scope |
| `POST /api/v1/access-reviews/definitions` | `certification:manage` | Build a draft from a definition. `422` with `code` and `errors` when invalid, `scope_empty` or `scope_too_large` |
| `GET /api/v1/access-reviews/{campaignId}/definition` | `certification:read` | The definition, re-importable. `404` for a campaign assembled one subject at a time |
| `GET /api/v1/access-reviews/review-queue` | `certification:review` | Your unanswered items with `daysUntilDue` and `reminder` |
| `GET /api/v1/access-reviews/{campaignId}/evidence` | `certification:read` | Signed JSON evidence of a closed campaign |
| `GET /api/v1/access-reviews/{campaignId}/evidence/csv` | `certification:read` | CSV evidence of a closed campaign |
| `POST /api/v1/access-reviews/evidence/verification` | `certification:read` | Check an evidence file against this deployment's key |

Opening, answering, reassigning and closing use the `certification-campaigns` routes in [Delegation, certification and drift](/nhi-security/delegation-and-certification#access-certification-campaigns).

## Limits

- Scoped reviews are over identities only. Credentials, tools and teams can still be reviewed one subject at a time through the API.
- No automatic revocation, and no e-mail, chat or ticket reminders.
- Scope by connector, owner, team, provider label and worst open severity; there is no scope by name pattern, environment or resource.
- The signature is symmetric (HMAC): the operator of the deployment can verify it and could also produce one.
