In this article:

AI Agent Identity: Managing Non-Human Identities for AI Agents

Cybersecurity
/
November 22, 2026
AI Agent Identity: Managing Non-Human Identities for AI Agents

AI agent identity is the practice of giving every AI agent its own managed identity, with a named human owner, credentials scoped to its job, a clear rule for when it acts as itself and when it acts on behalf of a user, and a life cycle that ends when the agent is retired. Agents are non-human identities, the same family as service accounts, API keys, and workload identities, but they decide at run time which tools to call, so a loose identity gives an attacker or a bad prompt far more room than a loose service account would. The fix is identity governance applied per agent: no shared accounts, no borrowed user tokens, short-lived credentials, and logs that tie every action to one agent and one owner.

Why do AI agents need their own identities?

Most early agents ran on whatever credentials were closest: a developer's personal token, a shared service account, or an API key pasted into a configuration file. That works in a demo and fails in an audit. When three agents share one service account, nobody can say which one deleted the record. When an agent runs on a developer's token, it inherits everything that developer can reach, and it keeps that access after the developer changes roles or leaves.

Agents also behave differently from the scripts that service accounts were designed for. A script calls the same API in the same way every time. An agent reads its inputs, chooses among tools, and can be steered by text it reads along the way. That makes the identity the ceiling on what a misled agent can do. Scoping it tightly is the most reliable control you have, and our article on AI agent permissions shows how to define that scope per tool and per action.

Should an agent act as itself or on behalf of a user?

Every agent design has to answer this, and the answer can differ by task. Microsoft's documentation for agent identities names the two modes clearly. With autonomous access, the agent acts using access rights given directly to its own identity. With delegated access, it acts on behalf of a human user, using the access rights given to that user.

Use delegated access when the agent serves one person and should see only what that person can see, such as a knowledge assistant searching documents. The user's own permissions then limit the results, and the logs show both the agent and the user. Use autonomous access for scheduled or event-driven work with no user present, such as an agent that reconciles invoices overnight, and give that identity only the specific rights the job needs. Avoid the hybrid that causes most incidents: an autonomous agent running on a privileged user's token.

Which non-human identity risks apply to agents?

The OWASP Non-Human Identities Top 10 for 2025 lists ten risks for service accounts, keys, and other machine identities. Each one applies to agents, and several get worse.

OWASP NHI riskHow it shows up with agentsControl
NHI1 Improper OffboardingPilot agents are abandoned with live credentials and tool accessAgent register with owners; retire identities with the agent
NHI2 Secret LeakageAPI keys sit in agent configuration files and promptsVault-issued credentials injected at run time
NHI3 Vulnerable Third-Party NHIThird-party agents and MCP servers hold tokens into your systemsVendor review and scoped, revocable grants
NHI4 Insecure AuthenticationStatic keys instead of OAuth or workload identityStandard protocols with audience-bound tokens
NHI5 Overprivileged NHIAgents granted broad scopes to avoid permission errorsLeast privilege per tool and per action
NHI6 Insecure Cloud Deployment ConfigurationsAgent runtimes deployed with default roles and open egressHardened runtime roles and egress allowlists
NHI7 Long-Lived SecretsTokens that never expireShort-lived credentials and automatic rotation
NHI8 Environment IsolationThe same agent identity used in test and productionSeparate identities per environment
NHI9 NHI ReuseSeveral agents share one service accountOne identity per agent
NHI10 Human Use of NHIDevelopers use the agent's credentials to work around their own limitsAlert on interactive use of agent identities

How are identity platforms supporting agents?

The major identity and cloud providers now treat agents as a distinct identity type. Microsoft announced that Entra Agent ID is generally available. Its documentation describes agent identities as identity accounts in Entra ID, agent identity blueprints as templates for creating them, Conditional Access policies for agents, and sign-in logs that record agent authentication as AI agents. For Copilot Studio agents, the user who created the agent is recorded as its sponsor. Microsoft notes that extending Entra security features to agents requires Microsoft Agent 365, which is included with Microsoft 365 E7 and sold as an add-on to other licenses, so check licensing before you plan on those controls.

Google's Gemini Enterprise Agent Platform, launched in April 2026, includes Agent Identity, an Agent Registry, and an Agent Gateway. Amazon Bedrock AgentCore Gateway separates inbound authentication, which verifies the agent, from outbound authentication, which connects to tools, and injects credentials per tool. For agents that use the Model Context Protocol, the Enterprise-Managed Authorization extension lets your identity provider decide which MCP servers each employee can reach, so revoking access in one place takes effect across clients. Our guide to the MCP gateway explains where that enforcement sits.

How do you put agent identity governance in place?

Start with what you have, then build the standard every new agent must meet. We run it in six steps:

  1. Discover. Find every agent and every credential it uses, including API keys in configuration files and tokens in automation platforms.
  2. Assign owners. Record a business owner and a technical owner for each agent, and retire any agent nobody will claim.
  3. Issue dedicated identities. Move each agent to its own identity in your identity provider, with separate identities for test and production.
  4. Scope and shorten. Reduce each identity to the permissions its tools need, and replace static keys with short-lived tokens issued at run time.
  5. Decide the access mode. Mark each task as delegated or autonomous, and block autonomous agents from running on user tokens.
  6. Monitor and review. Send agent sign-ins and actions to your SIEM, alert on unusual tool use or interactive logins, and review access quarterly with the owners.

For a company with a few dozen agents, discovery and migration take six to ten weeks as a BD Emerson planning range, and the longest step is usually finding the credentials that teams embedded in automation tools without telling anyone.

What should you ask vendors about agent identity?

Many agents arrive inside a product you buy, so identity questions belong in procurement. Ask the vendor whether each of its agents runs under a distinct identity in your tenant or under one shared integration account. Ask whether the agent can act on behalf of a user with that user's permissions, and how it obtains and refreshes those tokens. Ask which scopes it requests, whether you can narrow them, and what breaks if you do.

Then ask about the end of the relationship. How do you revoke the agent's access in one step, and how quickly does revocation take effect? Which logs record the agent's actions in your systems, and can you export them to your SIEM? A vendor that cannot answer in writing is asking you to accept an unmanaged non-human identity with standing access to your data, which is the exact risk the OWASP list describes. Put the answers in the agent register next to the agent's owner, so the next access review starts from facts.

How does agent identity fit with agent governance?

Identity is one control area in a wider agent governance program, alongside human approval, logging, evaluation, testing, and incident response. It is also the one the others depend on. Approval logs mean little if the approver cannot see which agent asked. Incident response cannot stop an agent quickly if its credentials are shared with three others. Our framework for AI agent governance places identity inside that wider set of controls and maps it to ISO 42001 and AIUC-1. For the threat model behind these controls, see securing AI agents.

How BD Emerson helps

BD Emerson designs and implements identity for AI agents: discovery of the agents and credentials already in use, dedicated identities in Entra ID or your identity provider, scoped and short-lived credentials, Conditional Access and monitoring, and testing that tries to abuse each agent's access the way an attacker would.

If your agents run on shared accounts or borrowed tokens today, our agentic AI security team can inventory them, move them to governed identities, and prove each one can reach only what its job requires.

About the author

Drew Danner is a Managing Director at BD Emerson. He leads engagements across technology strategy, enterprise AI, M&A technology diligence, and the firm's governance, risk, and security practice, advising buyers, operators, and portfolio companies on decisions where the technical call drives the commercial outcome. His work spans build vs buy decisions, platform implementations, and the security and compliance programs that keep them defensible.
Drew Danner
Drew Danner
Managing Director