# Agent identity and permissions

> A session started by an employee acts with that employee’s access and permissions, and its actions are attributed to them. An ambient agent, which starts outside an employee’s session (an alert, a schedule, an assigned ticket, a message in a channel such as Slack), has its own identity and access, never those of the person whose message or ticket triggered it.

There are two cases. In delegation, the agent acts on a person’s behalf, with their consent, never beyond their permissions, and its actions are attributed to them. That covers the background agent; the assistant, which only answers, also reads with the person’s permissions. In the second case, the agent has its own identity, a named owner and access limited to its task, reviewed the way a service account is. That covers the ambient agent and the company agent published for a team.

Some situations are misleading. An agent posted in a team channel that would answer with its creator’s permissions. A technical account shared by several agents. A message asking the agent to widen its own permissions. The last case has a name, the confused deputy: a powerful intermediary pushed to act for someone who lacks the right.

Group work raises the question again. An agent that answers in a Slack or Teams channel, or joins a shared project, is read by people with different permissions. When a message in the channel triggers it, it has its own identity, limited to content the whole channel can read, and an owner. Some platforms search with the permissions of whoever calls the agent and answer that person privately: the agent then works inside that person’s session, and nothing only they can see shows up in the channel. Either way, state what the space’s memory keeps and who is accountable for it. The rule depends on the level of use: personal use or a background agent acts with the person’s permissions; a company agent published for a team, or an ambient agent that starts outside an employee’s session, has its own identity, an owner and limited access.

Least privilege has to hold over time: access granted for one task that expires, scheduled reviews, immediate revocation when the agent is retired. Every action links back to an agent identity and an accountable person, or to the person the agent was acting for.

Tools are catching up. Corporate directories such as Microsoft Entra Agent ID manage agent identities separately from people’s accounts and application accounts. Delegation uses an OAuth on-behalf-of flow. NIST’s NCCoE runs a project on agent identity and authorization, and OWASP’s agentic Top 10 lists identity and privilege abuse among the main risks.

**When**: Needed from the first agent that acts in a system, starting with agents triggered with nobody behind the screen. For an assistant that only answers with the signed-in person’s permissions, single sign-on is enough.

**Trade-offs**: Giving each agent its own identity multiplies the accounts to manage. Sharing them makes actions impossible to attribute and permissions impossible to narrow.

## Where to start

- Classify each agent as delegated or with its own identity
- Create that identity, with an owner, for each ambient or company agent
- Decide which permissions each agent posted in a shared channel searches with
- Limit its access to its task and set a review date
- Revoke access when the agent is retired

## Common mistakes

- Letting an ambient agent act with the permissions of the person whose message triggered it
- Using a shared service account with no owner
- Letting a message or document widen what the agent can do

## Metrics

- Ambient or company agents without their own identity
- Permissions not reviewed for over six months
- Actions with no identifiable author

## Sources

- [Microsoft Learn, What are agent identities?](https://learn.microsoft.com/en-us/entra/agent-id/what-are-agent-identities)
- [Microsoft Learn, Agent on-behalf-of flow](https://learn.microsoft.com/en-us/entra/agent-id/agent-on-behalf-of-oauth-flow)
- [NIST NCCoE, Software and AI agent identity and authorization](https://www.nccoe.nist.gov/projects/software-and-ai-agent-identity-and-authorization)
- [OWASP, Top 10 for Agentic Applications 2026](https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/)
- [ANSSI, Security recommendations for a generative AI system](https://cyber.gouv.fr/en/publications/security-recommendations-generative-ai-system)
