---
title: "Access analysis"
description: "What a non-human identity can reach and what reaches a resource: effective access, blast radius, the identity graph, resource classification, tool reach."
keywords: ["effective access", "blast radius", "identity graph", "access path", "resource classification", "reached by", "tool reachability", "entitlements"]
---

Access analysis answers two questions from the [identity graph](/nhi-security/concepts#the-identity-graph): **what can this identity reach**, and **what reaches this resource**. Every answer is read from relationships a connector reported during a synchronization. Nothing on this page grants, removes or enforces access.

<Warning>
**Expect empty reach lists on an estate filled only by the shipped connectors.** A reach ends only at a discovered resource, and only the GitHub connector (repositories) and the MCP connector (the server itself) produce resources. Neither reports an access relationship that ends at one: GitHub's `HAS_PERMISSION` edges point at the permission an installation holds, and MCP reports only `BELONGS_TO` from a tool to its server. Read an empty list as "not collected", never as "reaches nothing". See [Limitations](/nhi-security/limitations#discovery).
</Warning>

Routes are written as the API declares them; inside TRUSTIVAN the console reaches them under `/nhi/api/v1/`. Every route takes your signed-in session, because NHI Security has no API keys.

## Permissions

| Permission | Allows | Roles that hold it |
|---|---|---|
| `identity:read` | Every graph route, the Identity graph screen, the reach panels on an identity | Every role |
| `resource:read` | The Resources screen, a resource's detail and what reaches it | Every role |
| `resource:classify` | Setting or clearing a resource's impact | Organization Admin, Security Admin |
| `agent:read` | The Entitlements screen and tool reachability | Every role |

Inside TRUSTIVAN nobody holds Security Admin, so only Owners and Admins can classify a resource.

## Effective access

Effective access lists the discovered resources an origin can reach, with the route to each.

```http
GET /api/v1/graph/identities/{identityId}/effective-access
GET /api/v1/graph/nodes/{nodeId}/effective-access
```

The first form takes an inventory identity. The second takes any graph node, such as a team, a credential or a tool.

### How it is computed

1. **Forward only.** The walk follows each relationship from its subject to its object and never backwards. Starting from a role, it does not reach the identities that assume that role.
2. **Six relationship kinds.** Only `USES`, `HAS_PERMISSION`, `ACCESSES`, `ASSUMES`, `CALLS` and `CONNECTS_TO` are followed. `OWNS`, `BELONGS_TO`, `AUTHENTICATES_WITH`, `CREATED`, `CREATED_FROM`, `DEPLOYS`, `EXECUTED`, `ROTATED_BY` and `REVOKED_BY` are not: owning an identity reaches nothing, and a group an identity belongs to does not extend its reach.
3. **Current relationships.** A relationship that a complete, successful synchronization stopped returning is kept as `absent` and skipped, unless you pass `includeAbsent=true`.
4. **Resources by provider key.** A node the walk reaches counts as a resource when its provider key equals the key of a discovered resource that is not `absent`. The match is made across your whole organization, so the connector that reports a grant need not be the one that discovered the target.
5. **One real route each.** For every resource the response carries the shortest route as the stored edges that form it. When several routes are equally short, the same one is chosen every time. No edge is invented and nothing is written back to the graph.

### Parameters

| Parameter | Default | Accepted | Effect |
|---|---|---|---|
| `maxDepth` | `6` | 1 to 6 | Hops the walk may follow |
| `nodeLimit` | `250` | 1 to 250 | Nodes the walk may visit before it stops |
| `includeAbsent` | `false` | `true`, `false` | Also follow relationships no longer observed |
| `minSensitivity` | none | `unknown`, `low`, `moderate`, `high`, `critical` | Lowest impact to list. Unclassified resources are listed only when the floor is `unknown` or omitted |
| `sort` | `sensitivity` | `sensitivity`, `distance`, `displayName` | Order of the list |
| `sortDirection` | `desc` | `asc`, `desc` | Highest impact first by default, unclassified last |

A value outside these ranges is refused, not clamped. The list is not paged.

### Response

The values below are illustrative; the field names are the ones the API returns.

```json
{
  "origin": {
    "id": "0b6e1c0e-8a5f-4f0e-9c56-2f3b6f1d7a10",
    "kind": "identity",
    "label": "deploy-bot",
    "identityId": "7d0c1c1e-2f4b-4c8e-8f1a-5b9f0e6c2a11",
    "principalId": null,
    "connectorId": "5f3a7f8e-1d2c-4b6a-9e0f-3c4d5e6f7a12",
    "connectorName": "acme-ci",
    "provider": "kubernetes",
    "externalId": "ci/deploy-bot",
    "rawProviderType": "ServiceAccount",
    "lifecycleState": "active",
    "presence": "present",
    "isResolved": true,
    "firstSeenAt": "2026-09-01T08:00:00.000Z",
    "lastSeenAt": "2026-10-12T08:00:00.000Z"
  },
  "resources": [
    {
      "resourceId": "c2a4e6f8-1b3d-4f5a-8c7e-9d0b1a2c3e13",
      "displayName": "acme/payments",
      "kind": "repository",
      "sensitivity": "critical",
      "classificationBasis": "operator_declared",
      "hops": [
        {
          "edgeId": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c14",
          "kind": "ASSUMES",
          "derivation": "inferred",
          "subjectNodeId": "0b6e1c0e-8a5f-4f0e-9c56-2f3b6f1d7a10",
          "subjectKind": "identity",
          "objectNodeId": "d4c3b2a1-6f5e-4b7a-9d8c-1f0e3b2a5c15",
          "objectKind": "identity"
        },
        {
          "edgeId": "e5f6a7b8-9c0d-4e1f-8a2b-3c4d5e6f7a16",
          "kind": "ACCESSES",
          "derivation": "observed",
          "subjectNodeId": "d4c3b2a1-6f5e-4b7a-9d8c-1f0e3b2a5c15",
          "subjectKind": "identity",
          "objectNodeId": "f7e6d5c4-b3a2-4c1d-9e0f-2a3b4c5d6e17",
          "objectKind": "repository"
        }
      ],
      "distance": 2,
      "isTransitive": true,
      "derivation": "inferred"
    }
  ],
  "completeness": "complete",
  "maxDepth": 6,
  "depthReached": 2,
  "resourcesAreCollected": true
}
```

- `distance` is the number of hops. `isTransitive` is true for more than one hop: access the identity arrives at through intermediaries.
- A resource's `derivation` is `observed` only when **every** hop is `observed`. One `inferred` hop, such as a Kubernetes ServiceAccount annotated with the AWS role it intends to assume, makes the whole reach `inferred`.
- `classificationBasis` is `null` exactly when `sensitivity` is `unknown`.

### How much of the answer you have

| `completeness` | Meaning |
|---|---|
| `complete` | The walk ran out of relationships to follow. The list is everything the graph connects the origin to |
| `depth_reached` | The walk went as deep as `maxDepth`. There may be more further out. A walk that happens to end exactly at the limit is reported this way too |
| `node_limit` | The walk hit `nodeLimit`, or recovering the routes took longer than 10 seconds and the remaining resources were dropped. The list is a floor |

Each database statement in a traversal is also cancelled after 5 seconds. When that happens the request fails; it does not return a partial list.

### When nothing has been collected

`resourcesAreCollected` is `false` when no connector in your organization has discovered a resource. The list is then empty because nobody looked. With it `true`, an empty list means no followed relationship ends at a discovered resource.

An identity no connector has related to anything has no graph node. The identity route then answers `200` with an empty list, an `origin` whose `label` is `Not in the graph` and whose `isResolved` is `false`, and `resourcesAreCollected: false`, whatever your organization has collected. The node route answers `404` for a node that does not exist or belongs to another organization.

## Blast radius

```http
GET /api/v1/graph/nodes/{nodeId}/blast-radius
```

Blast radius is a tally of the same walk, not a score. It accepts `maxDepth`, `nodeLimit` and `includeAbsent`, and always counts every sensitivity.

| Field | Counts |
|---|---|
| `total` | Reachable resources |
| `bySensitivity` | The same resources under `unknown`, `low`, `moderate`, `high` and `critical` |
| `transitiveCount` | Reaches that need more than one hop |
| `inferredCount` | Reaches with at least one inferred hop |
| `unclassifiedCount` | Reachable resources nobody has classified |
| `highestSensitivity` | The worst classified level reached, or `unknown` when nothing reachable is classified |

`completeness` and `resourcesAreCollected` are passed through unchanged. `unknown` is its own bucket and is never counted as `low`: forty unclassified reachable resources are an unmeasured radius, not a small one. Blast radius does not feed the [risk score](/nhi-security/findings-and-risk#risk), which is derived from findings only.

## Other graph reads

All need `identity:read`.

| Route | Returns |
|---|---|
| `GET /api/v1/graph/summary` | Node and edge counts, by kind, with `unresolvedEndpoints`, `noLongerObserved` and `hasCompletedSync`. The counts mean nothing while `hasCompletedSync` is `false` |
| `GET /api/v1/graph/nodes/{nodeId}/neighborhood` | Everything within `depth` hops (0 to 4, default 1), in either direction, over every relationship kind unless you filter with `kind`. At most `nodeLimit` nodes (1 to 250); `truncated` says when more exist |
| `GET /api/v1/graph/identities/{identityId}/neighborhood` | The same for an identity. An identity with no node answers `200` with `focus: null` |
| `GET /api/v1/graph/nodes/{nodeId}/relationships` | The node's edges, paged (`limit` up to 100, default 25), filterable by `kind`, `direction` (`out`, `in`, `both`) and `presence`. Unlike the other reads it includes `absent` edges unless you filter them out |
| `GET /api/v1/graph/paths?from=&to=` | The shortest route between two nodes within `maxDepth` (1 to 6), in either direction and over every kind, with `isFullyObserved`. `404` when there is none within the limits |

<Note>
A neighbourhood and a path are **not** access answers. Both ignore direction and follow every kind, including `OWNS` and `BELONGS_TO`. Use them to see what is near something, and effective access to see what it can reach.
</Note>

## In the console

### Identity graph

**Identities → Graph** opens on four tiles (**Relationships**, **Things connected**, **Not yet discovered**, **No longer observed**) and no picture, because it shows one path at a time. Open it from an identity (**Open the path** on its **Relationships** panel) or from a finding (**See what this identity can reach** in the finding's **Path** section). The address is `/graph?identity={identityId}`, so a path is a link you can share.

The path is drawn as five fixed columns, left to right, in the same place on every visit:

| Column | What is in it |
|---|---|
| **Who uses it** | Nodes with a relationship pointing at the identity that acts through it: owns, uses, assumes, created, deploys or calls it |
| The identity | The identity itself, highlighted |
| **Credentials** | Credentials, secrets and tokens it authenticates with |
| **Permissions** | Permissions it holds |
| **What it reaches** | Resources, repositories, databases and other nodes it reaches directly or through a credential or permission in the earlier columns |

Each card names the node, its kind and the relationship that placed it (for example **Has permission** or **Accesses, through** a permission), and is marked **Inferred** when that relationship was concluded from configuration rather than reported. A column shows its first eight cards and links to the rest. The path opens two hops deep; choose a **Depth** of 1, 2 or 3. Selecting a card re-centres the path on it.

Within two hops there are often nodes that only share a neighbour with the identity, such as another identity holding the same permission. They are not drawn as something the identity reaches. The screen says how many there are and lists them in the table.

**Layers | Table** switches to the same nodes as a table: **Layer**, **Name**, **Kind**, **Relationship** and **Basis** (`Observed` or `Inferred`). The table is also the screen-reader view, although each column of the picture is itself a list of links.

Opened on a node rather than an identity (`/graph?node={nodeId}`), the same layers are drawn around that node, and **Every relationship** below them lists its edges: the direction, the relationship, what it connects to, its **Basis**, its **State** (Observed, No longer observed, Unconfirmed), the connector that observed it and when it was last seen. The table shows the first 25.

A **not yet discovered** badge means the node is not backed by an inventory identity, a user or a team. A warning appears when the neighbourhood is larger than the 250 nodes shown. The screen does not call the effective-access or paths routes.

### An identity's record

**Identities → an identity** shows **What this identity can reach**, read from the blast-radius route: **Reachable**, **High impact** (critical plus high), **Unclassified**, **Transitive** and **Inferred**, a bar by impact, and a note that reads **Complete** or **A floor**. The **Reachable resources** fact in the header carries a `+` when the answer is a floor. The panel says so when nothing connects to the identity, and when no resource has been collected. The list of reachable resources itself is available from the API only.

**Relationships** on the same page draws the one-hop neighbourhood.

### Resources and what reaches them

**Identities → Resources** lists discovered resources with their **Impact**, a **Reached by** count, activity and source, and filters for impact, kind, provider and **Unrated only**. Every resource arrives **Unrated** (`unknown`): no connector sets an impact, and NHI Security never derives one from a name.

Opening a resource shows **What can reach it** (`GET /api/v1/resources/{resourceId}/reached-by`): the identity, the relationship, whether the provider published it or it was concluded from configuration, and the identity's owner. This list is narrower than effective access:

- **Direct edges only.** An identity that reaches the resource through an intermediary is not listed.
- **Same connector.** The edge and the resource must come from one connector.
- **Any relationship kind**, not only the six that convey access.
- `total` is the number of rows read so far, not a count of everything.

<Steps>
  <Step title="Open the resource">
    Go to **Identities → Resources** and select it. An unrated resource carries the notice **Nobody has said what this is worth**.
  </Step>
  <Step title="Set the impact">
    Under **Set the impact**, choose **Critical**, **High**, **Moderate** or **Low** and say why. The reason is required and is quoted in the findings the rating produces.
  </Step>
  <Step title="Or clear it">
    Choose **Unrated** to clear the rating and its reason. Unrated is not low: policies that need a classification go back to reporting that they cannot assess the resource.
  </Step>
</Steps>

```http
PATCH /api/v1/resources/{resourceId}/classification
Content-Type: application/json

{ "sensitivity": "critical", "reason": "Holds the payment service source and its deploy workflow" }
```

`sensitivity` is one of `unknown`, `low`, `moderate`, `high` or `critical`; `reason` is at most 500 characters and required for every level except `unknown` (`422` without it). The basis is recorded as `operator_declared`, the change is audited as `resource.classified` or `resource.classification_cleared` with the level before and after, and a synchronization never resets it. `high` and `critical` are what the [runtime gate](/nhi-security/runtime-gate) and the impact policies treat as high impact.

### Entitlements and tool reachability

**Agents → Entitlements** lists declared agent-to-tool entitlements (`GET /api/v1/tools/entitlements`): which AI agent may invoke which tool, why, who declared it, and whether it is **Live** or **Withdrawn**. It does not list provider permissions. Declaring and withdrawing are covered in [Agent autonomy](/nhi-security/agent-autonomy#3-entitle-it-to-tools).

`GET /api/v1/tools/reachability` (`agent:read`) joins identity to tool to resource. Filter with `identityId`, `toolId` or `classifiedTargetsOnly=true`. Each path names both hops with `usesDerivation`, `accessesDerivation`, `isFullyObserved` and the connectors' own `evidence` sentences. A path exists only when a connector reported **both** a `USES` edge from the identity to the tool and an `ACCESSES` edge from the tool to a discovered resource. A declared entitlement does not create one, and the MCP connector reports neither edge, so with the shipped connectors this list is empty. `GET /api/v1/tools/reachability/summary` says which half is missing through `hasCollectedEntitlements` and `hasCollectedTargets`. The agent and tool pages that show these paths are described in [Agent registry](/nhi-security/agent-registry#the-agent-tools-screen).

## Where provider permissions fit

Connectors that collect permissions (AWS, Entra ID, Google Cloud, GitLab, Snowflake, Okta service apps and Slack on Enterprise Grid) store each grant in a permission inventory. **No route and no screen reads that inventory today.** What you can see of a grant is the `HAS_PERMISSION` edge a connector reports as a relationship, from an identity to a policy, role or permission node, in the graph and in the effective-access routes. The `permission_grants` fact that policies such as `privileged_unowned_identity` need is read from those edges as well.

## What this does not do

- It does not change access anywhere. Classifying a resource records your judgement; it revokes nothing.
- It does not let you add or correct a relationship. Every edge comes from a connector.
- It does not expand a policy or a role into the resources it covers. A reach needs an edge that names the resource.
- It does not merge linked identities. Reach is computed per identity, whatever [identity resolution](/nhi-security/ownership#identity-resolution) has concluded.
- The runtime gate does not compute reach. It reads the rating of the resource a request names.

## Next steps

- [Ownership and identity resolution](/nhi-security/ownership): who is accountable for what you found here.
- [Findings and risk](/nhi-security/findings-and-risk): the policies that read classification and reach.
- [Connectors](/nhi-security/connectors): which relationships each connector reports.
- [Runtime gate](/nhi-security/runtime-gate#access-grants): access grants for a resource rated high or critical.
