# Owners, state and links of non-human identities

When a service account misbehaves or a secret is about to expire, the first
question is who is responsible. This page explains how Mesh finds that answer: who
owns each non-human identity, whether it is still switched on, and which workloads
depend on it.

Each connector that reports non-human identities (NHIs) sends the same kinds of
facts: who owns the identity, whether it can still be used, and which workload
runs as it. This page explains how Mesh reads those facts. For what each
connector sends, see [Non-human identity coverage](../connectors/non-human-identity-coverage.md).

## Owners and their roles

Mesh keeps the owners a source states apart from the owners it suggests. An owner a
source states is shown as the source gave it. A suggested owner is labelled as a
suggestion, with the evidence behind it. See
[Suggested owners](#suggested-owners).

An NHI can have several owners. Mesh keeps all of them. Each owner has a role:

| Role | When Mesh shows it |
| --- | --- |
| **Business** | The source says the owner is a business owner. |
| **Technical** | The source says the owner is a technical owner. |
| **Security** | The source says the owner is a security owner. AWS owner tags can carry this role. |
| **Unspecified** | The source reports an owner but not a role. This is the default. |

An owner shown as **Unspecified** is expected, not an error. To get a role,
record it in the source system, if the source supports it. Not every source
does.

An identity with no owner stated by its source has no stated owner in Mesh, so
ownerless identities are easy to find. Mesh may suggest one. See
[Suggested owners](#suggested-owners).

> **note**
If a source names an owner that does not match a user in Mesh, for example a
team name in a tag, Mesh keeps the owner as written and marks it unresolved.

## Suggested owners

Each non-human identity shows an **Ownership** card with a **Business owner** (accountable for what it is used
for) and a **Technical owner** (maintains it and rotates its secrets). An owner a
source names without a role shows as **Owner (role not specified)**.

![The Ownership card of a non-human identity, with a business owner, a technical owner and the evidence behind each suggestion](/img/concepts/non-human-identity-data/ownership-card.png)

For each role, Mesh weighs the evidence from every connected source and lists the
likely owners. It labels the best candidate **Suggested**, with how strong the
evidence is:

| Evidence | What it means |
| --- | --- |
| **Source-stated** | A source stated who the owner is. This is the strongest evidence. |
| **Inferred** | Mesh worked it out from a related record, for example who created the identity or who owns its application. |
| **Name match only** | A name match alone. It is not evidence of ownership, and it never adds confidence. |

Select **See evidence** to open **Why these owners**. It lists each piece of
evidence, where it came from, and whether it is more than 90 days old. A source
fact always outweighs an inference. Two independent facts combine, and two copies
of the same fact count once.

An owner can also show one of these states:

| State | What it means |
| --- | --- |
| **Possible owner** | Worked out from a related record, not stated by a source. Confirm it before relying on it. |
| **Sources disagree** | Two sources name different people with equal weight. Mesh does not pick one. |
| **Owner has left** | The strongest evidence names someone who has left the company, so nobody is accountable. |
| **Not matched to a person** | A source named someone Mesh could not match to a person. |
| **No owner found** | No source or related record names anyone. |
| **Lead only** | Mesh found only a name match. It is not evidence of ownership; confirm or assign an owner. |
| **Not evaluated yet** | Mesh has not evaluated this identity yet. |

### Confirm or change an owner

A user with the **Decide non-human identity owners** permission can decide who owns each role. Select **Review owner**,
**Change owner** or **Assign an owner**, then confirm Mesh's suggestion, or choose
**Someone else** by searching for a person by name or email. You can add a note
with the reason. Only people Mesh has ingested can be chosen. Everyone else sees
the owner read-only.

![The dialog for confirming or changing an owner, with the suggested person, the role to record and an optional reason](/img/concepts/non-human-identity-data/confirm-owner.png)

A decision shows as **Confirmed**, or **Overridden** when you chose someone other
than Mesh's suggestion. Mesh keeps recalculating, and your decision stays on top.
You can replace a decision, but you cannot withdraw it.

## Disabled and deleted

Mesh shows an NHI as:

- **Disabled** when the source reports that it can no longer sign in or be used.
  It returns to active when the source re-enables it.
- **Deleted** when the source no longer has it after a complete collection.

When a collection cannot read a complete list, Mesh keeps what it already has
rather than marking identities deleted. The next complete collection corrects
it.

## Links between workloads and identities

Where a source reports it, Mesh links a workload, such as a virtual machine, a
function or a container workload, to the identity it **runs as**. These links
make up the **Permission flow** view of an identity.

An empty **Permission flow** tab means one of two things: the source does not
report links, or only one end of a link comes from a connected source. See
[Non-human identity coverage](../connectors/non-human-identity-coverage.md) for
which connectors report links.

## Accounts that appear as service accounts

Some systems keep service and shared accounts as ordinary accounts. Mesh shows
these as non-human identities of kind **Service account**.

For these accounts:

- With several owners, Mesh shows one primary owner and keeps every owner link
  with its role. A person is preferred over a group, then the business,
  technical, security and unspecified roles in that order. An owner that is not a
  user or group in your tenant is never chosen as the primary owner.
- A disabled account shows as **Disabled**.
- If the same identity is also collected directly by its own connector as another
  kind, for example an Entra ID service principal, managed identity, OAuth app or
  agent, the direct collection keeps its kind and owner. The service-account
  entry only adds links. If the direct collection is itself a service account,
  the most recent collection wins.

An identity wrongly shown as **Service account** corrects itself at the next
collection from its own connector.
