Someone on your team builds an AI agent. It needs to read from SharePoint, call an internal API, and file tickets. So you create an app registration. You generate a client secret. You grant it Graph permissions — slightly more than it needs, because nobody is sure yet what it will need.
Six weeks later there are nine agents. They share three app registrations, because creating new
ones requires a ticket. One of them was a proof of concept somebody forgot to switch off. Every
action all of them have ever taken is logged under svc-ai-integration.
Then someone asks the question you cannot answer: which agent deleted those records?
If this sounds familiar, you are not alone. We spent twenty years building identity models for two kinds of actor — humans who log in, and services that run forever. Agents are neither. They are created in seconds, act on their own initiative, sometimes borrow a human’s permissions, and may exist for the length of a single task.
Microsoft Entra Agent ID exists to close that gap, and it is now available to all Entra customers. Here is what it actually is.
What an Agent Identity Actually Is
An agent identity is an identity account in Microsoft Entra ID that belongs to one AI agent.
That is the whole idea. Not a shared service account the agent borrows. Not a human’s token the agent rides on. Its own account, in the same directory as everything else, that shows up in the same logs.
The practical consequence is attribution. When an agent queries Graph, the sign-in is recorded as that agent — not as an app registration three other things also use. Microsoft’s own Conditional Access optimization agent works this way: it has an agent identity, and every query it makes is recorded as having been performed by an AI agent.
Why Not Just Use a Service Principal?
This is the question I get first, and it is a fair one. Service principals already exist. They already authenticate. Why invent something new?
Because service principals were designed with three assumptions that agents break:
Assumption 1 — Long life. A service principal is expected to be stable. It is registered once and lives for years. An agent might exist for ninety seconds.
Assumption 2 — Known ownership. Someone in the platform team registered it and knows why. An agent can be created by a business user clicking a button in Copilot Studio.
Assumption 3 — Manageable volume. You have hundreds of service principals. You will have thousands of agents, created and destroyed continuously as part of automated workflows.
Push agents through the service principal model and you get exactly what you would expect: orphaned credentials, permission assignments nobody can trace to a purpose, and an app registration list that has stopped being a meaningful inventory. Agent identities are built for scale and ephemerality instead of permanence — created in bulk, governed by consistent policy, and retired without leaving debris behind.
The Two Ways an Agent Gets Access
This is the part worth understanding properly, because it is where the security decisions live.
Autonomous access — the agent acts as itself, using rights granted directly to its own identity: Graph permissions, Azure RBAC roles, Entra directory roles, app roles. Nobody is in the loop. The agent’s identity is the whole authorization story.
Delegated access — the agent acts on behalf of a human, using rights that belong to that human. The user controls which rights are delegated.
The distinction matters enormously and it is easy to get wrong. Delegated access feels safer, because the agent cannot exceed what the user can already do. But it also means the agent inherits the full breadth of a human’s permissions to perform one narrow task, and the audit trail shows a person doing things a person did not do.
Autonomous access feels riskier, and is usually the better answer, because it forces you to state exactly what the agent is allowed to do — and nothing else.
The Underrated Feature: Sponsors
When a user creates an agent in Copilot Studio, that user is recorded as the agent’s sponsor.
This sounds administrative. It is the most important governance primitive in the whole model.
Every orphaned service account in your tenant right now exists because the person who created it left, and nobody inherited the question should this still exist? A sponsor is that question, attached to the object, permanently. It converts “what is this thing” into “ask this person” — which is the difference between an inventory you can clean up and one you cannot.
What This Doesn’t Solve
Agent identities give you the identity. They do not give you the judgement.
Licensing has teeth. Agent ID itself is available to all Entra customers, but extending Entra’s security features to agents — Conditional Access, ID Protection — requires Microsoft Agent 365. Budget for that before you design around it.
Right-sizing is still your job. An agent identity with Graph Directory.ReadWrite.All is
exactly as dangerous as a service principal with the same grant. The identity model tells you
who. You still have to decide what.
Ephemerality cuts both ways. Identities that are cheap to create at scale get created at scale. The failure mode of the old world was a hundred stale service principals. The failure mode of this one is ten thousand agent identities that were all individually reasonable.
I have spent the last few years making access in my environments declarative — ownership stated in Git, reconciled continuously, expiring on its own unless something renews it. Agents do not change that pattern. They raise the stakes on it, because agents create identities faster than humans ever did, and none of them will remember to tidy up.
The Takeaway
Stop thinking of an AI agent as a feature of an application, and start thinking of it as a participant in your environment.
Participants need identities. Identities need owners, scope, and an expiry. We already knew that about humans, and learned it the hard way about service accounts. Agents are simply the third case — and the first one that can create more of itself while you are not looking.
Give it its own name before you give it your data.
Running agents in a tenant with auditors in it? I have been working through exactly this. Drop a comment or reach out — happy to dig into specifics.