Understanding Microsoft Entra Agent ID
This lesson explains why agents need identities, and the objects in Microsoft Entra Agent ID.
Learning outcomes
After completing this lesson, you will be able to:
- Explain why agents need their own identities.
- Describe blueprints, agent identities and agent users.
- Distinguish the ways in which agents act.
- Identify the administrative roles.
Why agents need their own identities
Early agents often ran under a person's account or a shared service principal. Both approaches cause problems. Agent activity cannot be told apart from human activity in logs, permissions pile up, and nobody clearly owns the agent. As organizations deploy many agents, some built by business users, they need a way to know what agents exist, who is responsible for them, and what they can reach.
Microsoft Entra Agent ID addresses this by making agents first-class citizens of the directory. An agent identity is an identity account in Microsoft Entra ID for an AI agent. It can use application permissions, delegated access, Azure roles or directory roles, and it can be subject to Conditional Access, risk detection and governance.
The object model
Microsoft Entra ID defines four related object types, and exam questions depend on knowing what each does.
| Object | Purpose | Key facts |
|---|---|---|
| Agent identity blueprint | A template and special identity type | Holds credentials, required resource access and inheritable permissions. Its only operation is provisioning and deprovisioning agent identities. |
| Agent identity blueprint principal | The blueprint's instance in a tenant | Receives the AgentIdentity.CreateAsManager permission automatically, and can create up to 250 agent identities. |
| Agent identity | The identity of one agent | Authenticates through its blueprint, and receives permissions. |
| Agent user | A special user account linked one-to-one to an agent identity | Used when an agent must act like a person, with a mailbox, licences or group membership. |
The blueprint gives a powerful control. Disabling a blueprint stops all of its agent identities from authenticating, so a whole family of agents can be stopped in one action if a flaw appears. This resembles the relationship between an application registration and its service principals, and the analogy helps to remember that the blueprint is the definition and the identity is the instance.
The following diagram shows how the four object types relate.

Agent ID objects
How agents act
An agent can access resources in three ways, which matter greatly in the next lesson.
- On behalf of a user: the agent uses delegated access, so it acts with the rights of the user, and risk is attributed to that user.
- As itself, application-only: the agent uses its own identity, with application permissions.
- As an agent user: the agent appears as a user account, with a mailbox and group memberships.
Agent identities are created through several channels. Microsoft product integrations such as Copilot Studio, Security Copilot and Microsoft Foundry can create them, and each Copilot Studio agent receives one, with the creator recorded as sponsor. Identities can also be created through the Microsoft Entra admin center, Microsoft Graph, command-line tools, and the consent experience. All creations appear in the Microsoft Entra audit logs.
Administrative roles
Microsoft Entra ID has dedicated roles for this work, which allow a least-privilege approach. The following table shows them.
| Role | What it allows |
|---|---|
| Agent ID Administrator | Manages all aspects of agents in a tenant, including the lifecycle of blueprints, identities and agent users. It is a privileged role. |
| Agent ID Developer | Creates an agent identity blueprint and its principal, and becomes owner of them. |
| Agent Registry Administrator | Manages the Agent Registry service. |
| AI Administrator | Manages Microsoft Copilot and AI-related enterprise services in Microsoft 365, and can create agent identities. |
Creating a blueprint needs Agent ID Developer or Agent ID Administrator. Creating an agent identity needs Agent ID Developer, Agent ID Administrator or AI Administrator. An agent user needs Agent ID Administrator or User Administrator.
Agent ID roles
ID Protection for agents
Microsoft Entra ID Protection also covers agents, in a Risky Agents report. Detections include unusual sign-in spikes, suspicious credential use, access to unfamiliar resources and directory reconnaissance. Agent risk detections are offline, not real-time. Administrators can confirm a compromise, confirm an agent as safe, dismiss the risk or disable it. In on-behalf-of flows, risk is attributed to the user, not the agent. Microsoft notes that ID Protection for agents will require a Microsoft Agent 365 licence, so check the current position on Learn.
Agent risk
Stopping a family of agents
A flaw has been found in a set of 40 agents, all created from one blueprint. New agents from that blueprint may be created during the incident. You must stop all of them from authenticating as quickly as possible, and you must retain them for investigation. What should you do?
Disable the agent identity blueprint. This stops every agent identity created from it from authenticating, in one action, and retains the objects for investigation.
Disabling agents one at a time is slow and would miss new ones. Deleting the blueprint would destroy useful evidence. Conditional Access could block them, but it is a less direct response, and it would need a new policy to be created and to take effect, and it would not cover API key access.
When does an agent need an agent user rather than just an agent identity?
Show answer
When it must behave like a person, with a mailbox, licences or group membership.
Exam Tips
Remember for the exam
- The blueprint is the definition; the agent identity is the instance.
- Disabling a blueprint stops all of its agent identities.
- An agent user is needed only when an agent must act like a person.
- Agent risk detections are offline.