Lesson 1 of 5 Securing AI Agent Identities

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.

ObjectPurposeKey facts
Agent identity blueprintA template and special identity typeHolds credentials, required resource access and inheritable permissions. Its only operation is provisioning and deprovisioning agent identities.
Agent identity blueprint principalThe blueprint's instance in a tenantReceives the AgentIdentity.CreateAsManager permission automatically, and can create up to 250 agent identities.
Agent identityThe identity of one agentAuthenticates through its blueprint, and receives permissions.
Agent userA special user account linked one-to-one to an agent identityUsed 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.

The Microsoft Entra Agent ID object model. An agent identity blueprint is a template that holds credentials, required resource access and inheritable permissions. Its blueprint principal, the instance in a tenant, can create up to 250 agent identities. Each agent identity authenticates through its blueprint and receives permissions. An agent user is a special user account linked one-to-one to an agent identity, for agents that must act like a person. Disabling the blueprint stops all of its agent identities from authenticating.
The blueprint is the definition; each agent identity is an instance.
Match the pairs

Agent ID objects

Exam skills 3.1.6 · 3.1.4

Match each Microsoft Entra Agent ID object with its purpose.

Log in to try this activity Interactive activities are free with an account.

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.

RoleWhat it allows
Agent ID AdministratorManages all aspects of agents in a tenant, including the lifecycle of blueprints, identities and agent users. It is a privileged role.
Agent ID DeveloperCreates an agent identity blueprint and its principal, and becomes owner of them.
Agent Registry AdministratorManages the Agent Registry service.
AI AdministratorManages 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.

Scenario questions

Agent ID roles

Exam skills 3.1.6

Choose the least-privileged role for each agent administration task.

Log in to try this activity Interactive activities are free with an account.

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.

True or false

Agent risk

Exam skills 3.1.4 · 3.1.6

Check how ID Protection treats agents.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.