> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents/nhi-owner-suggestion-agent.md).

# NHI Owner Suggestion Agent

Use the NHI Owner Suggestion Agent to find likely human owners for an unowned non-human identity, choose the right one, and capture the pattern as an enrichment rule.

{% hint style="warning" %}
**AI-generated content:** The NHI Owner Suggestion Agent uses generative AI to explain the signals behind each owner candidate and to draft enrichment rules. Its explanations and rules can be inaccurate or incomplete. Consider each candidate's reasoning before assigning an owner, and check the rule preview before saving a rule.
{% endhint %}

Unowned service accounts, keys, and workloads are difficult to govern when no one is accountable for reviewing their access or retiring them. The NHI Owner Suggestion Agent helps identify potential owners based on patterns and relationships in your environment.

For one non-human identity (NHI), the agent searches Access Graph for evidence of who owns it and suggests up to three people within an identity provider (IdP). Each suggestion includes the reasoning behind it and a confidence score, so that you can decide whom to assign.

After you assign an owner, the agent can help draft an enrichment rule from the same evidence. After it is saved, the rule sets owners on every matching NHI at each extraction, including NHIs discovered later.

## Capabilities

This agent helps decide who should own any NHI shown in **NHI Accounts**, whether the NHI has no owner yet or needs an additional one. It considers several types of ownership evidence: any linked CMDB record, owner properties and tags on the NHI, the people and resources connected to it in Access Graph, and the existing owners of similar NHIs. It suggests only active users in your IdP.

You can also select **Non Human Identity** in the agent selector and ask about an NHI's owner, and the agent describes potential candidates. Only threads opened from **Access AI Suggest an Owner** can complete an assignment.

### Suggest an owner

In **NHI Security** > **NHI Accounts**, select **Access AI Suggest an Owner** in the row actions for an NHI. The Access AI panel opens, and the agent analyzes the NHI.

Each candidate appears on a card titled **Assign**, followed by the person's name.

The card body reads `Tier n | Confidence: n% — reason`. The tier names the check that found the candidate (see [How it works](#how-it-works)), followed by the confidence score and a short reason. Candidates that more than one check found rank higher.

After deciding on an owner, select a button on that person's card:

| Action                                | Effect                                                                                                                                                                                                   |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Assign**                            | Assigns the person as an owner of the NHI as soon as you select it. No confirmation follows. The card then reads **Approved**.                                                                           |
| **Approve & Suggest Enrichment Rule** | Assigns the person as an owner as soon as you select it, and asks the agent to draft an enrichment rule for the pattern. No confirmation follows. The card then reads **Approved with Enrichment Rule**. |

For the steps, see [Suggest NHI owners with Access AI](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi/suggest-nhi-owners-with-access-ai.md).

The agent does not suggest inactive IdP users or the NHI's current owner. When the NHI has an owner, suggestions are additional owners.

If no check produces a candidate who matches an active IdP user, the agent tells you it found no suggestions.

{% hint style="warning" %}
The buttons on a candidate card work only in the thread that **Access AI Suggest an Owner** opened for that NHI. In another thread, or after reloading the page or switching threads, the card reports that the action has expired. Select **Access AI Suggest an Owner** again for current suggestions.
{% endhint %}

### Capture the pattern as an enrichment rule

Select **Approve & Suggest Enrichment Rule** instead of **Assign**. After the owner assignment completes, the agent shows a rule suggestion card with a name and a description for the [enrichment rule](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/configuration/enrichment.md).

* **Preview Rule** opens the **Access AI Generated Enrichment Rule and Preview** form, which lists the entities the rule would change. You can edit only the **Rule Name** and **Priority**.
* **Save Rule** in the form creates the rule. No confirmation follows. The card then reads **Created**.

For the steps, see [Capture the pattern as an enrichment rule](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi/suggest-nhi-owners-with-access-ai.md#capture-the-pattern-as-an-enrichment-rule).

The agent suggests a rule only when the evidence forms a repeatable pattern based on properties. When the owner came from population frequency (Tier 5) or graph proximity (Tier 6), or when the evidence is a tag rather than a property, the assignment you approved still applies, and the agent explains why it does not suggest a rule.

## How it works

The agent runs a series of checks, called tiers, from the most direct evidence to statistical fallbacks.

* **Tier 0: CMDB lookup.** If a CMDB configuration item is linked to the NHI, the agent reads the owner listed there.
* **Tier 1: NHI self-inspection.** Owner properties and tags on the NHI itself, such as `created_by`, `managed_by`, `business_owner`, `technical_contact`, or `owner_email`, when the value is an email address or a person's full name.
* **Tier 2: Direct human neighbors.** People the NHI is directly connected to in the graph, for example through created-by, owns, or administers relationships.
* **Tier 3: Direct non-human neighbors.** Owner properties on resources directly connected to the NHI, such as an EC2 instance with a recorded owner.
* **Tier 4: Pattern discovery.** Ownership patterns across several hops, learned from similar NHIs that already have owners.
* **Tier 5: Population frequency.** People who own many similar NHIs.
* **Tier 6: Graph proximity.** The nearest connected person in the Access Graph, used as a last resort.

A similar NHI has the same type, provider, and data source. Without similar NHIs, the agent skips Tiers 4 and 5, and it skips Tier 4 when similar NHIs show no ownership pattern. When the earlier tiers already produce three strong candidates, the agent skips Tier 6.

The agent matches each candidate against the active users before it shows the candidate. It drops a candidate who does not match and continues with the remaining checks.

The agent uses the relationships recorded in Access Graph. When creation, ownership, or administration relationships are missing for an NHI's resource type, the agent relies more on the later tiers.

## Where it appears in the product

* **NHI Security** > **NHI Accounts**: **Access AI Suggest an Owner** in the row actions opens the agent for that NHI.

## Enabling the NHI Owner Suggestion Agent

* **IdP integration.** The agent matches candidates against a connected identity provider. Without one, the agent returns fewer suggestions or none. A configured [Global Identity Provider](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-reviews/configuration/global-idp-settings.md) helps but is not required.
* **Non-human entities.** The agent works on entities that Veza classifies as non-human. See [NHI Supported Entities](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi/nhi-entities.md).

The agent also requires Access AI. See [Enabling Access AI](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents.md#enabling-access-ai).

## Who can use the NHI Owner Suggestion Agent

* **Availability and setup:** See [Enabling Access AI](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents.md#enabling-access-ai).
* **Opening the agent:** Any built-in role that includes Access AI: Administrator, Operator, Viewer, NHI Security Admin, Access Reviewer, Access Reviews Admin, Access Reviews Monitor, Watcher, or Re-assigner. The **Access AI Suggest an Owner** button appears only for the Administrator, NHI Security Admin, and Operator roles. See [Roles](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/administration/administration/users/roles.md).
* **What it reads:** The NHI, the entities connected to it in the Access Graph, similar NHIs that already have owners, and the users in a connected IdP. For the shared data-handling model, see [Privacy, data handling, and audit](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents.md#privacy-data-handling-and-audit).
* **Completing actions:** **Assign** and **Approve & Suggest Enrichment Rule** require a role that can assign owners: Administrator, NHI Security Admin, or Operator. **Save Rule** requires the Administrator role. For other roles, **Save Rule** is disabled with an "Insufficient permissions" tooltip, and the preview form shows an error instead of the entity list.

## Related

* [Veza Access Agents](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents.md)
* [Access Agents](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents.md)
* [Suggest NHI owners with Access AI](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi/suggest-nhi-owners-with-access-ai.md)
* [NHI Agent](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents/nhi-agent.md)
* [NHI Classification Agent](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents/nhi-classification-agent.md)
* [NHI Security](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi.md)
* [NHI Supported Entities](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi/nhi-entities.md)
* [Enrichment Rules](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/configuration/enrichment.md)
* [Assign Entity Owners](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-reviews/configuration/managers-and-resource-owners.md)
* [Owners API](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/developers/api/management/owners.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents/nhi-owner-suggestion-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
