---
title: "Ownership and identity resolution"
description: "Work the unowned identity queue, accept suggested owners, assign owners in bulk with rules, and hand over the identities of someone who left."
keywords: ["identity ownership", "unowned identity", "owner tags", "assign owner", "owner suggestions", "ownership rules", "owner left", "hand over", "identity resolution", "canonical identity", "identity links"]
---

An owner is who gets asked about a non-human identity: who rotates what it authenticates with, who reviews its access, who decides when it goes. [Concepts](/nhi-security/concepts#ownership) defines the three confidence values. This page covers how you work with them.

Every identity is in one of three states, and the console keeps them apart:

| State | What it means | Shown as |
|---|---|---|
| **Owned** | A user or a team in your organization is assigned | The owner's name |
| **Unresolved** | A provider names somebody (`ownerRef`), and no user or team is assigned | The provider's value with an **unresolved** marker |
| **Unowned** | Confidence is `unknown`: nothing states an owner | **unowned** |

<Warning>
**A provider tag never becomes an owner by itself.** NHI Security records what the provider says as a reference and, separately, [suggests](#suggested-owners) the user or team it names. An identity gets an owner only when a person assigns one, accepts a suggestion, or applies an [ownership rule](#ownership-rules) they wrote. Until then, an identity tagged `Owner: platform-team` is unresolved, and it still raises `unowned_identity`.
</Warning>

Routes are written as the API declares them; inside TRUSTIVAN the console reaches them under `/nhi/api/v1/`.

## Permissions

| Permission | Allows | Roles that hold it |
|---|---|---|
| `identity:read` | The Ownership screen, an identity's ownership panel, every identity-resolution read | Every role |
| `identity:manage` | Assigning or clearing an owner, accepting or rejecting a suggestion, creating, applying or deleting a rule, setting the owner keys, handing over, ruling on a link | Organization Admin, Security Admin |
| `team:read`, `user:read` | Filling the owner picker | Every role |

Inside TRUSTIVAN nobody holds Security Admin, so only Owners and Admins can assign an owner or rule on a link.

## The Ownership screen

**Identities → Ownership** is a worklist, not a second inventory.

**The tiles** come from `GET /api/v1/identities/summary`: **Identities** (`total`), **Accountable** (the total minus the next two), **Unowned** (`unowned`), **Unresolved** (`unresolvedOwner`) and **Owner left** (`ownerDeparted`). Until a synchronization has completed they show no figure and say **No synchronization has completed**.

Four tabs sit under the tiles: **No owner** (below), [**Suggestions**](#suggested-owners), [**Owner left**](#when-an-owner-leaves) and [**Rules**](#ownership-rules).

**Nobody is accountable for these** lists identities whose confidence is `unknown`, most recently seen first, 25, 50 or 100 to a page. It is `GET /api/v1/identities?ownership=unknown&sort=lastSeenAt&direction=desc`. Each row shows the identity and its provider identifier, its type, its source, its lifecycle status and when it was last seen, and opens the identity.

What the screen leaves out:

- **Unresolved identities are counted, not listed.** Find them under **Identities** with the **Owner** filter set to **Declared** or **Inferred**, and look for the **unresolved** marker.
- **Every lifecycle state is included**, decommissioned identities too, in the tiles and in the list. Read the **Status** column before chasing an owner for something that is gone.
- **The No owner tab has no assignment control.** Assign one identity from its page, accept a suggestion on the Suggestions tab, or assign many with a rule on the Rules tab.

### Work the queue

<Steps>
  <Step title="Open an identity from the list">
    Its **Ownership** panel shows **Owner**, **Confidence**, **Basis** and, when the provider names somebody and nobody is assigned, **Provider says**. Treat that value as a lead to the right team.
  </Step>
  <Step title="Assign an owner">
    Select **Assign owner**, pick a team or a person, and select **Assign**. Prefer a team: an owner who leaves should not take accountability with them. Create teams under **Settings → Teams**; see [Administration](/nhi-security/administration).
  </Step>
  <Step title="Check the findings">
    Assigning re-evaluates that one identity in the same request and resolves every finding on it that no longer matches. `unowned_identity`, `privileged_unowned_identity` and `unowned_agent` resolve at once, each with an automated history entry reading "The policy no longer matches." A finding the owner does not settle, such as `stale_identity`, stays open. Risk snapshots and posture are not recaptured until the next evaluation. See [Findings and risk](/nhi-security/findings-and-risk#evaluation-runs).
  </Step>
</Steps>

The **Assign owner**, **Reassign owner** and **Record as unowned** controls appear only with `identity:manage`. The same controls are on an AI agent's page.

**Record as unowned** resolves and opens nothing by itself. The finding is raised again at the next evaluation, which runs when someone asks for one or after a synchronization that collected something.

## How a provider claim is recorded

A synchronization records an ownership claim only where the provider states one. It stores the value as `ownerRef`, where it came from as `inferenceBasis` (for example `Tag "Owner"`), and a confidence.

| Connector | Recorded as `declared` | Recorded as `inferred` |
|---|---|---|
| AWS (tags on roles and users) | `owner`, `owneremail`, `owner_email`, `contact`, `contactemail` | `team`, `managedby`, `managed-by`, `managed_by`, `createdby`, `created-by`, `businessunit`, `aws:cloudformation:stack-name` |
| Kubernetes (ServiceAccount annotations, then labels) | `owner`, `owners`, `owner-email`, `contact`, `contact-email` | `team`, `managed-by`, `part-of`, `created-by`, `release-name`, `instance` |
| Entra ID | The owner list of the application or service principal | None |
| Okta | The user who created an API token | None |
| Slack | None | The admin who last approved or restricted an org app |
| GitHub, GitLab, Google Cloud, Snowflake, Vault | None | None |

AWS tag keys are matched without regard to case. Kubernetes keys are matched on the part after any prefix, so `example.com/owner` counts as `owner`. In both, the first key in the order above wins, and every `declared` key is tried before any `inferred` one. Entra ID lists up to five owner names and says how many more there are.

### What a later synchronization does

- **An owner a person assigned is never changed.** A synchronization leaves the owner, the confidence and the basis exactly as assigned, whatever the provider's tags now say.
- **An inference never replaces a declaration.** A `declared` claim is replaced only by another `declared` claim. An `inferred` claim is replaced by a `declared` or an `inferred` one.
- **A claim is not withdrawn when the tag disappears.** A synchronization that finds no owner tag leaves the recorded claim in place.
- Each change to a claim adds an entry to the identity's evidence, quoting the value and its basis.

## Assign or clear an owner

```http
PUT /api/v1/identities/{identityId}/owner
Content-Type: application/json

{ "kind": "team", "principalId": "3f8a2c1e-5b7d-4e9f-8a1c-2d3e4f5a6b70" }
```

`kind` is `user` or `team`. `principalId` is that user's or team's identifier in your organization; anything else is refused with `400`. An unknown identity answers `404`. The response is the identity, with `ownership.confidence` set to `declared`, `ownership.owner` carrying the `kind`, `id` and `label`, and `ownership.inferenceBasis` reading `Assigned by an operator of this organization.`

Any user or team in your organization can be an owner. The console's picker offers the first 100 teams and the first 100 users; the API accepts any of them. Inside TRUSTIVAN a person becomes a user here the first time they open NHI Security.

```http
DELETE /api/v1/identities/{identityId}/owner
```

**Record as unowned** sets the confidence to `unknown` and removes the owner, the provider's reference and the basis. It is not permanent: if the provider still states an owner, the next synchronization records that claim again, as a reference with no owner assigned.

Both changes are written to the [audit trail](/nhi-security/governance-and-audit) in the same transaction, as `identity.owner_assigned` (with the owner's kind and identifier) and `identity.owner_cleared`, and both add an entry to the identity's evidence. If the audit record cannot be written, the change does not happen.

<Note>
A remediation action of type `assign_owner` is a recorded proposal only. Executing it does not change the owner. See [Remediation](/nhi-security/remediation).
</Note>


## Suggested owners

The **Suggestions** tab (`GET /api/v1/ownership/suggestions`) lists live identities with no assigned owner for which the evidence names a user or a team in your organization, with up to five candidates each (the console shows three). Nothing is assigned until a person accepts.

A candidate comes from one of three sources, and each line under it says which:

| Source | What it reads | Confidence |
|---|---|---|
| Provider tag or label | A tag or label whose key is in your [owner keys](#owner-keys) | `high` for `owner`, `owner-email`, `owner_email`, `owneremail`, `contact`, `contact-email`; `medium` for any other key |
| Provider owner field | The owner reference the connector recorded (Entra ID owners, an Okta token's creator, the Slack admin) when it is not one of the labels already read | `high` when the provider records it as declared, `medium` otherwise |
| Team membership | The teams of a person found by either source above | One level below that person |

When two different sources point at the same user or team, its confidence goes up one level. Candidates are ordered by confidence, then by how many signals support them, then a team before a person, then by name.

The matching is exact. A value containing `@` matches a user's email without regard to case. Any other value matches a team name without regard to case, spaces, hyphens or underscores, so `platform-engineering` matches **Platform Engineering**. A display name never matches a user, and nothing is matched by similarity. A user whose account is suspended or disabled is never suggested.

Which connectors can feed a suggestion today: AWS (role and user tags) and Kubernetes (ServiceAccount labels and annotations) store their tags and labels; Entra ID, Okta and Slack contribute through the provider owner field. GitHub, GitLab, Google Cloud, Snowflake and Vault report no owner signal, and no connector reads CODEOWNERS or commit history. Every connector is verified against recorded provider responses only, never against a live provider.

Tags and labels are stored per identity, at most 64 pairs, with keys up to 128 and values up to 256 characters. A longer value is dropped, not truncated, and so is any pair that looks like a credential.

<Steps>
  <Step title="Accept">
    **Accept** assigns that user or team the way **Assign owner** does: recorded as the operator's, never changed by a synchronization, with the basis `Suggested owner accepted (provider_label).` (naming the sources). The identity is re-evaluated at once, so `unowned_identity` resolves in the same request. Audited as `identity.owner_suggestion_accepted`. Accepting a principal that is not a current candidate is refused with `409`.
  </Step>
  <Step title="Or reject">
    **Not the owner** records that this user or team does not own this identity. It is never suggested for it again; rejecting a person does not reject their team. Audited as `identity.owner_suggestion_rejected`.
  </Step>
</Steps>

```http
POST /api/v1/ownership/suggestions/accept
Content-Type: application/json

{ "identityId": "…", "kind": "team", "principalId": "…" }
```

`POST /api/v1/ownership/suggestions/reject` takes the same body. Each read scans the 5,000 most recently seen unowned identities; `truncated` is `true` when there are more.

### Owner keys

The tag and label keys suggestions read. The default list is `owner`, `owner-email`, `owner_email`, `owneremail`, `contact`, `contact-email`, `team`, `created-by`, `created_by`, `createdby`, `managed-by`, `managed_by`, `managedby`, `cost-center`, `cost_center`, `costcenter` and `business-unit`. Set your own on the Rules tab or with `PUT /api/v1/ownership/label-keys` (`{ "keys": [...] }`, up to 32 keys of letters, digits and `. _ - / :`, each up to 64 characters). An empty list restores the default. Audited as `ownership.label_keys_updated`. `GET /api/v1/ownership/label-keys` returns the list in force.

## Ownership rules

A rule assigns one user or team to every identity it matches that has **no assigned owner**. It never replaces an owner somebody chose, and an identity whose owner has left is not touched (hand it over instead).

A rule matches on any of these, and every one you fill must match:

| Criterion | Matches |
|---|---|
| Label key, optionally with a value | A stored tag or label with that key (any case); the value, when given, must be equal without regard to case |
| Name pattern | The identity's display name, with `*` and `?` as wildcards, anchored at both ends, without regard to case. A pattern of only wildcards is refused |
| Connector | The connector that discovered it |
| Account, project or cluster | The scope in the identity's provider key, for example an AWS account number |
| Kubernetes namespace | ServiceAccounts in that namespace, and nothing else |

<Steps>
  <Step title="Preview">
    **Preview matches** (`POST /api/v1/ownership/rules/preview`, the criteria as the body) shows how many unowned identities match and lists the first 25. **Save rule** stays disabled until you have previewed.
  </Step>
  <Step title="Save">
    `POST /api/v1/ownership/rules` with `name`, `criteria` and `owner` (`kind`, `principalId`). Saving assigns nothing. Names are unique; an organization can have up to 200 rules. Audited as `ownership_rule.created`.
  </Step>
  <Step title="Apply">
    **Apply now** (`POST /api/v1/ownership/rules/{ruleId}/apply`) assigns the rule's owner to exactly the identities the preview listed, because both run the same matcher. Each is recorded as the operator's with the basis `Ownership rule "<name>".` and re-evaluated. Audited once as `ownership_rule.applied`, with the count and the first 100 identity identifiers.
  </Step>
</Steps>

**After every synchronization** that collected anything, every saved rule runs, in the order shown, over the identities still without an owner, before the posture evaluation. The first matching rule decides. A new identity a rule matches is therefore owned by the time it is evaluated. Each rule that assigned something writes one `ownership_rule.applied` record with the actor `system` and `trigger: "sync"`. Deleting a rule (`DELETE /api/v1/ownership/rules/{ruleId}`, audited as `ownership_rule.deleted`) leaves the owners it assigned in place. A rule cannot be edited or reordered; delete it and create another.

## When an owner leaves

When an Organization Admin suspends or disables a user (**Settings → Users**, or `PATCH /api/v1/users/{userId}/status`), the identities that person owns are re-evaluated straight after the change. Each live identity they own gets an `owner_departed` finding of kind `orphaned_identity`: `high` when it holds a grant its provider defines as administrative, `medium` otherwise. Reinstating the user resolves them. An identity owned by a team never raises it.

The **Owner left** tab lists each suspended or disabled person who owns live identities, with the count, and the identities themselves (`GET /api/v1/identities?ownerDeparted=true`, `GET /api/v1/ownership/departed`). **Hand over** moves every live identity that person owns to the successor you pick, a team or an active person, in one step:

```http
POST /api/v1/ownership/handover
Content-Type: application/json

{ "fromUserId": "…", "to": { "kind": "team", "principalId": "…" } }
```

Each identity is recorded as the operator's with the basis `Handed over from a previous owner.` and re-evaluated, so its `owner_departed` finding resolves in the same request. Audited once as `identity.ownership_handed_over`, with the count and the first 100 identity identifiers. Handing over to the departing person is refused with `400`.

What leaver detection does not do:

- **It sees this organization's accounts only.** A person disabled at your identity provider, or deprovisioned there by SCIM, is not a leaver here until their account in NHI Security is suspended or disabled. Nothing propagates that change today.
- **It sends nothing.** The finding is the notification: it appears in Findings and on the identity. NHI Security does not deliver email or webhooks for it.

## How ownership feeds findings

Five policies share one test: `unowned_identity`, `privileged_unowned_identity`, `unowned_privileged_activity`, `unowned_agent` and `agent_delegated_authority_unowned`. An identity passes it only when **both** hold:

1. Its confidence is not `unknown`.
2. A user or a team is assigned.

A provider reference with nobody assigned does not pass, and an assigned owner passes whether or not a provider ever named one. `unowned_identity` is not raised for a quarantined or decommissioned identity. When a provider names an owner and nobody is assigned, the finding quotes the provider's value.

A sixth policy, `owner_departed`, asks the opposite question of an owned identity: is the assigned person still active here? See [When an owner leaves](#when-an-owner-leaves).

## Identity resolution

One workload often appears as two identities: a Kubernetes ServiceAccount and the AWS role it federates into, for example. Identity resolution records that as a **link**: a statement about two identities that never edits either. Both keep their own connector, owner, lifecycle, findings and evidence.

**This is API only.** No console screen lists links or lets you rule on one.

| Route | Permission | Returns |
|---|---|---|
| `GET /api/v1/identity-resolution/links` | `identity:read` | Up to 200 links, most recently observed first. Filter with `status` or `identityId` |
| `GET /api/v1/identity-resolution/summary` | `identity:read` | `totalLinks`, `byStatus`, `bySignal`, `canonicalIdentities`, `linkedIdentities`, `contradicted`, `hasResolved`, `lastResolvedAt` |
| `GET /api/v1/identity-resolution/canonical` | `identity:read` | Canonical identities, as `key` and `memberIds` |
| `POST /api/v1/identity-resolution/links/{linkId}/ruling` | `identity:manage` | The link, after your ruling |

The summary's counts mean nothing while `hasResolved` is `false`, which it is until a synchronization has completed.

### How a link is proposed

Resolution runs as the last step of a synchronization, including one that read only part of its scope. It reads what is already stored and looks for exactly two signals:

| `signal` | What was seen | `confidence` | Arrives as |
|---|---|---|---|
| `federated_principal` | An `ASSUMES` relationship with a discovered identity on one end and, on the other, a provider key that an identity from a **different** connector carries | `confirmed` | `confirmed` |
| `shared_credential_fingerprint` | Two identities whose credentials carry the same provider-published fingerprint | `probable` | `proposed` |

Either signal arrives as `ambiguous` instead when it names more than one candidate; `candidateIdentityIds` lists them all. A shared fingerprint is only ever `proposed` because it has two readings NHI Security cannot tell apart: one workload recorded twice, or two workloads sharing a credential. Today only the Entra ID connector (certificate thumbprints) and the GitLab connector (deploy key fingerprints) record a fingerprint.

There is no signal for a matching name, an email address, a tag or any kind of similarity, and a federation that points at a principal nothing has discovered creates no link and no placeholder identity. A third signal, `operator_asserted`, is in the model; no route creates a link, so nothing produces it.

Each link also carries a `statement`, the two identities' names, and a `corroboration` computed when you read it: `corroborated` when both identities are present, `contradicted` when one provider still returns its side and the other no longer does, and `unconfirmed` otherwise.

### Rule on a link

```http
POST /api/v1/identity-resolution/links/{linkId}/ruling
Content-Type: application/json

{ "status": "rejected", "reason": "Two services share this deploy key. They are separate workloads." }
```

`status` is `confirmed` or `rejected`, and `reason` is required (1 to 2,000 characters).

- You can rule on any link no person has ruled on, including one that arrived `confirmed`.
- **A ruling is final.** A second ruling on the same link is refused with `400`, and no route reverses one.
- **A rejection survives re-observation.** Later synchronizations that see the same signal leave the link `rejected`.
- Ruling on an `ambiguous` link settles the pair it is stored under (`lowerIdentityId` and `upperIdentityId`) and clears the candidate list. You cannot choose a different candidate.
- The ruling is audited as `identity.link_confirmed` or `identity.link_rejected` against the lower identity of the pair, with your reason.

### Canonical identities

A canonical identity is a set of identities joined by `confirmed` links. Its `key` is the lowest member identifier. It is computed when you ask and stored nowhere, so **nothing is merged**: the inventory still lists each identity, and ownership, findings, risk and [effective access](/nhi-security/access-analysis#effective-access) are all worked out per identity. Today a link informs a person; nothing else in NHI Security reads it.

## Where to go next

- [Access analysis](/nhi-security/access-analysis): what the identities you now own can reach.
- [Findings and risk](/nhi-security/findings-and-risk): the ownership policies and how to triage them.
- [Administration](/nhi-security/administration): users, teams and roles.
- [Connectors](/nhi-security/connectors): what each connector reports about ownership.
