Microsoft Entra Agent ID
Conditional Access

Conditional Access for Agents in Microsoft Entra

In brief

The documentation now distinguishes agents acting for signed-in users, using their own identity, or using an agent user account. It adds separate guidance links for autonomous agents and agent users and updates the listed licensing combinations.

What Entra admins need to know

Administrators should identify each agent’s access pattern and review the corresponding policy guidance and licensing requirements.

This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Conditional Access for agents

Conditional Access for agents is an intelligentextension of the Conditional Access policy engine that helps organizations controlcontrols how users and agents access corporate resources.resources protected by Microsoft Entra ID. It brings together real-time signals such as user's and agent's context, device, location, and session risk information to determine when to allow, block, or limit access, or require more verification steps.

Conditional Access for agents requires Microsoft Entra ID P1Understanding the agent's access pattern helps you target the correct identity. An agent can act on behalf of a signed-in user, use its own agent identity, or P2 and a Microsoft Agent 365 license for each user. Enforcement of Agent 365 licensing is coming soon. Network controls for agents require Microsoft Entra Internet Access. For more information, see What is Microsoft Entra Agent ID.use its own agent user account.

Learn about Conditional Access for agents:

Requirements and licensing

Microsoft Entra ID Conditional Access for agents requires one of the following license plans:

  • Microsoft 365 E7, which includes Agent 365 and Microsoft Entra Suite.
  • Microsoft Agent 365 license paired with at least Microsoft Entra P1 or Microsoft 365 E3.

For more information, see Microsoft Agent 365 plans and pricing.

How Conditional Access evaluates agent access requests

To access a corporate resource such as a SharePoint file, MCP servers,server, or Open API services,service, a user or agent first requests an access token from Microsoft Entra ID.

When a Conditional Access policy applies, Microsoft Entra ID evaluates the configured policy requirements before issuingit issues the token. If the requirements are satisfied, an access token is issued.Microsoft Entra ID issues the token. The token is then presented to the target resource, whichresource validates the token and uses its claims to make authorization decisions.

The following diagram illustrates this process.

:::image type="content" source="media/agent-id/data-access-patterns-diagram.png" alt-text="Diagram showing the data access patterns for agent identities." lightbox="media/agent-id/data-access-patterns-diagram.png":::

How subjects and audiences are used

Microsoft Entra ID issues an access token to a subject for a specific audience (resource). Each access token has exactly one subject and one audience.audience:

  • Subject: The identity receivingthat receives the token.
    • In delegated access scenarios,access, the token represents the user while also identifying the calling application or agent.
    • In application-only scenarios,access, the application or autonomous agent identity is the subject.
    • In agent's agent-user account scenarios,access, the agent's user account is the subject.

  • Audience: The target resource that the token is intended for.
    • The resourcefor, which must be registered in Microsoft Entra ID.
    • If a subject needs to accessaccesses multiple resources (for example, multiple MCP servers or APIs),resources, it typically requiresneeds a separate access token for each resource, each with its own audience and permissions.resource.

    Conditional Access policies are evaluated based onevaluates both the subject requestingthat requests access and the audience being accessed. It evaluates policies when Microsoft Entra ID issues or refreshes an access token. Some resources also support Continuous Access Evaluation, which can trigger near-real-time enforcement for specific events.

    How Conditional Access decisions are made

    Conditional Access is evaluated whenever Microsoft Entra ID issues or refreshes an access token. Some resources also support Continuous Access Evaluation, which can trigger near-real-time enforcement for specific events.

    Agent access patterns

    Agents can access Microsoft Entra-protected resources using one of the following patterns:

    If the agentAccess patternPolicy targetGuidance
    Accesses downstream resources for a signed-in userOn-behalf-of (OBO), also known as delegated accessUsers and groupsAgent OAuth flows: On-behalf-of
    Accesses resources with its own agent identity and no signed-in userApplication-only, also known as client credentials or app-only accessAgent identity or agent identity blueprintSecure autonomous agents with Conditional Access
    Accesses resources through its own user accountAgent-user accessAgent's user accountSecure agents that act as users with Conditional Access

    An agent can use more than one access pattern. Create separate policies for each token subject that the agent uses. A policy that targets an agent identity doesn't apply to the agent's user account, and a policy that targets the agent's user account doesn't apply to the agent identity.

    Agents actingthat act on behalf of a user

    The most common access pattern is the on-behalf-of (OBO) flow. In thisthe OBO flow, a user signs in to an agent application, and theapplication. The agent accesses downstream resources usingwith the user's identity and delegated permissions. For example, when an agent reads your emails, it accesses your mailbox on your behalf. For more information about how the OBO flow works for agents, see Agent OAuth flows: On-behalf-of.

    Because the user is the subject in this flow, Conditional Access policies target users and groups, not agent identities.

    Agents that act as applications

    Agents might access resources without a signed-in user. In this case the agent accesses the resource with its own identity. This flow is also known as client credentials flow, or app only access. All types of agents might use this flow. For more information about how agents authenticate with their own identity, see Agent OAuth flows: Autonomous apps.

    • For example, if an agent calls a backend SMS service that users don't have access to, the OBO flow doesn't apply, and the agent authenticates directly as itself.
    • Agents published on the web for public use don't authenticate the user or don't support delegating the user's context to corporate resources.

    In these scenarios, the agent requests an access token using its own agent identity and credentials managed through the agent identity blueprint. The token is issued to the agent identity (not the user). Therefore, Conditional Access policies are scoped to the agent identity rather than the user. For step-by-step policy configuration, see Secure autonomous agents with Conditional Access.

    Agents actingthat act as a userusers

    Sometimes it's not enough for an agent to perform tasks on behalf of a user or operate with its own identity. In certain scenarios, an agent has its own agent's user account that functions as a digital worker with its own mailbox, access to chat, and the ability to participate in collaborative workflows as a team member.

    Agents running on managed endpoints like Windows 365 Cloud PCs for Agents can also be subject to device compliance and compliant network controls. Use the Agent execution environments (Preview) condition to scope these policies to endpoint-based sessions only. For more information, see Require a compliant device for agents' user accounts.

    Conditional Access policies and agent identity blueprints

    In addition to the specific agent access patterns, you can also select agent identity blueprints to apply Conditional Access policies to a class of agents. EveryAn agent identity is derived from an agent identity blueprint, whichblueprint defines itsthe configuration and governance model. Applyingmodel for agent identities created from it. A policy that targets a policy at the blueprint level automatically coversapplies to all agent identities derivedcreated from it,that blueprint, including any new ones added in the future. Targeting the agent identity blueprint does not cover agents' user accounts.identities created later.

    The following diagram shows that only agent identities associated with blueprint "A" are granted access; all other agents are excluded and blocked.

    :::image type="content" source="media/agent-id/conditional-access-agent-identity-blueprint-diagram.png" alt-text="Diagram showing thea Conditional Access flow forpolicy applied to agent identity blueprints.identities from one blueprint." lightbox="media/agent-id/conditional-access-agent-identity-blueprint-diagram.png":::

    For example, imagine a project where you have several agents, each with its own purpose. Some operate independently, while others collaborate with other agents (A2A) to complete tasks. If they're all created under the same blueprint, a single policy applied to that blueprint enforces consistent access controls across the entire collection.

    :::image type="content" source="media/agent-id/conditional-access-agent-diagram.png" alt-text="Diagram showing the Conditional Access flow for agent identities." lightbox="media/agent-id/conditional-access-agent-diagram.png":::

    For a full walkthrough on creating custom security attributes and using them in a Conditional Access policy,policy example, see Conditional Access for autonomous agentsAllow approved agents by using custom security attributes.

    Conditional Access boundariesBoundaries and limitations

    Conditional Access policies don't apply when:

    • A Conditional Access policy targeting agent identities won't apply to the agent's user account.
    • A Conditional Access policy targeting agent identities using agent identity blueprint covers only the agent identity, not the agent's user account.

    Next stepsRelated content

Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…