Authentication and authorization for AI agents

AI agents can be governed through their own Microsoft Entra agent identities under Conditional Access, and MCP clients can obtain IdP-issued grants under enterprise-managed authorization, but each path depends on license tier, preview features or draft standards. This page sets out what is built in, what is paid, and what remains open.

On this page

How AI agents authenticate and get authorized in an enterprise

An agent needs to reach company systems, and the reviewer must decide whether it can sign in with the corporate identity provider and receive scoped access. Microsoft Entra Conditional Access can target autonomous agents that authenticate with their own agent identity, but that capability requires Microsoft 365 E7, or Microsoft Agent 365 paired with Entra ID P1 or Microsoft 365 E3. On the MCP side, enterprise-managed authorization is an extension to the Model Context Protocol, and the grant it relies on comes from an IETF draft rather than a finished standard. There is no single edition-wide answer. The result depends on which agent type the organization runs and which identity path it uses, so the reviewer should map each agent to its path before approving anything.

Start by asking the vendor which identity an agent uses when it acts: the signed-in user's identity, a shared service account, or a dedicated agent identity. Each path changes what Conditional Access can see and enforce. Microsoft recommends a block policy that excludes approved agent identities, and it suggests starting that policy in report-only mode so the team can review what it would have blocked before enforcing it. Confirm with the vendor and your Microsoft licensing contact which license covers each agent identity and whether agent risk-based policies are included. Agent risk requires Entra ID P2 or Microsoft 365 E5 and is still in preview, so do not treat it as a production control without confirming its current status.

For MCP servers, the Enterprise-Managed Authorization extension has the client exchange the user's SSO identity assertion for an Identity Assertion JWT Authorization Grant from the corporate IdP. The IdP evaluates policy before the MCP server issues an access token, which lets IT centrally approve or deny a given server for a given user. Ask the vendor whether its client and server support this extension, whether the IdP you run supports the grant, and how token scopes are limited for each tool. Because the underlying grant is still a draft, plan for changes in the specification. NIST's concept paper on identity and authority of software agents describes the broader work on agent identity standards that may shape future requirements.

Which identity controls apply to which agent path and license

This table maps each identity control in the Authentication and authorization for AI agents topic to the agent path it covers, its license or status, and what sits outside the vendor's control. Read the license column as the minimum tier named in the supplied documentation, and confirm your own tenant entitlements with Microsoft before planning rollout.

CapabilityWhat it applies toLicense or statusOutside the vendor
Agent identity sign-in with Conditional AccessAutonomous agents that authenticate with their own agent identity in Microsoft Entra, including a block policy that excludes approved agent identitiesRequires Microsoft 365 E7, or Microsoft Agent 365 paired with Entra ID P1 or Microsoft 365 E3Agents that run under a shared service account or a user's own credentials do not present an agent identity for this policy to evaluate
Agent risk-based policiesRisk signals applied to agent identities, so policy can respond to risky agent sign-insRequires Entra ID P2 or Microsoft 365 E5; agent risk is in previewPreview behavior, detection coverage and changes may differ from the general release; confirm current status with Microsoft
MCP enterprise-managed authorizationThe MCP client exchanges a user's SSO identity assertion so the corporate IdP evaluates policy before an MCP server issues an access tokenPublished as an MCP extensionThe MCP server, its tool design and its token handling remain the responsibility of the server owner and your own review
ID-JAG authorization grantThe Identity Assertion JWT Authorization Grant that the IdP issues to the client for presentation to the MCP serverIETF draft: draft-ietf-oauth-identity-assertion-authz-grant in the OAuth working groupA draft can change before it is finalized; confirm which IdP and MCP server versions in your estate support it
NIST agent identity and authorization workGuidance on applying identity standards to software and AI agents, including how agents prove identity and authorityNCCoE concept paper; public comments closed April 2, 2026, ahead of a potential projectA concept paper sets no requirements; it informs your own policy and does not certify any product
Admin policy for agent identitiesIT decisions to approve, block or scope individual agent identities within the tenantDependent on the license tier that carries Conditional Access for agentsYour agent inventory and ownership records must be maintained by your team

How the identity decision is made before an agent reaches a resource

Two separate enforcement paths decide whether an agent gets access, and a reviewer should know which one applies to each tool. In the first path, the agent signs in with its own agent identity, and Microsoft Entra Conditional Access evaluates that sign-in like any other workload or user sign-in. Microsoft recommends starting with a block policy that excludes approved agent identities, and it can be started in report-only mode so the tenant can see what would be blocked before enforcement. Conditional Access for agents requires Microsoft 365 E7, or Microsoft Agent 365 paired with Entra ID P1 or Microsoft 365 E3. Agent risk-based policies need Entra ID P2 or Microsoft 365 E5, and agent risk is still in preview. Confirm these license requirements with Microsoft and check in your own tenant which agent identities exist, which are approved, and whether the exclusion list is maintained by someone accountable for it. Review the Conditional Access guidance for autonomous agents before you rely on it.

In the second path, the MCP client does not present its own credential to the MCP server first. It exchanges the user's SSO identity assertion for an Identity Assertion JWT Authorization Grant (ID-JAG) from the corporate identity provider, which evaluates policy before anything else happens. Only after that evaluation does the MCP server issue an access token for the tool. The enforcement point here is the IdP, so the decision depends on the IdP's policy engine and on which MCP servers and clients your organization has registered with it. The ID-JAG format is defined in an IETF OAuth draft, which is still a draft, so confirm with your identity vendor which features and versions they support before you depend on them.

Request flow for an MCP tool call under enterprise-managed authorization

The diagram starts with the user signing in to the corporate identity provider, then shows the MCP client exchanging that SSO identity assertion for an Identity Assertion JWT Authorization Grant. The IdP evaluates its policy before issuing the grant, and the client presents it to the MCP authorization server, which returns an access token before the tool call runs. The grant format is defined in an IETF draft, so confirm with your IdP vendor which version of that draft it implements. Check where policy decisions are made and what the MCP server can see.

Enterprise-managed authorization: policy is checked at the IdP before any MCP access token is issued.

Decisions the organization must make before approving agent sign-in

Each decision below changes who is accountable for an agent's actions, how far a compromised agent can reach, and what the organization pays for. The choices are connected: the identity model determines what the identity provider must issue, and the policy and logging choices determine whether a reviewer can later reconstruct what the agent did.

Agent identity or user-delegated access

Decide whether an agent signs in with its own identity, acting as a non-human principal, or borrows a user's session and acts on that person's behalf. A separate agent identity lets Conditional Access target the agent itself and gives audit logs an attributable actor, but it needs its own owner, permissions and lifecycle. User-delegated access inherits the user's rights, so the blast radius is whatever that user can reach. Ask which model each tool supports and who owns each agent identity.

Identity provider and protocol

Decide which corporate identity provider issues agent tokens and which OAuth flows each tool uses. The choice affects whether an existing sign-in policy, multifactor rule and session lifetime apply to agents at all. Confirm with each vendor whether it supports your provider's standard sign-in protocols, whether tokens can be scoped to individual tools, and how refresh tokens are stored and revoked when a user leaves.

Conditional Access exclusion list

Microsoft recommends a block policy for autonomous agents that excludes approved agent identities, and the policy can start in report-only mode. Decide who maintains the exclusion list, what evidence justifies an entry, and how an agent is removed when its owner changes. A broad exclusion list defeats the block policy, while a narrow one blocks legitimate work. Test the policy in report-only mode against real agent sign-ins before enforcing it.

Conditional Access for agents

Risk policy licensing

Conditional Access for agents and agent risk-based policies are licensed differently. Entra ID P2 or Microsoft 365 E5 is needed for agent risk policies, and agent risk is in preview. Confirm which licence your tenant holds before designing controls that depend on risk signals, and record that a preview feature may change. Licensing is a recurring cost tied to user or tenant counts, so raise it in the quote and in the budget owner review.

MCP server and client allowlisting

Under enterprise-managed authorization, the MCP client exchanges a user's SSO identity assertion for an Identity Assertion JWT Authorization Grant from the corporate IdP, and the IdP evaluates policy before the MCP server issues an access token. Decide which MCP clients and servers are approved, and whether the IdP alone decides which servers an agent may reach. Confirm that each client supports this extension, since an unsupported client falls back to a different authorization path.

Enterprise-managed authorization

Where sign-in and policy logs go

Decide which system receives sign-in logs, Conditional Access evaluations and MCP token grants, how long they are retained, and who can read them. Agent actions are only attributable if the agent identity and the delegating user both appear in the log record. Ask each vendor which events are exported, whether they can be forwarded to your SIEM, and whether the retention period meets your investigation and compliance needs.

How the answer changes by license, identity provider and agent type

Organizations licensed for Microsoft 365 E7, or running Microsoft Agent 365 alongside Entra ID P1 or Microsoft 365 E3, can apply Conditional Access to autonomous agents that authenticate with their own agent identity. This is the only licensing path in the supplied facts that covers that targeting directly. Microsoft recommends starting with a block policy that excludes approved agent identities, and that policy begins in report-only mode, so it does not block anything until you switch it on.

  • License basis: Conditional Access for agents requires Microsoft 365 E7, or Agent 365 paired with Entra ID P1 or Microsoft 365 E3. Confirm the exact combination on your order with Microsoft.
  • Agent identity targeting: Policies can target agents that sign in with their own identity, so agent sign-ins can be separated from user sign-ins in reporting.
  • Report-only first: Review the sign-ins the policy would have blocked before enforcing it, and keep approved agent identities on the exclusion list.
  • Risk-based policies: Agent risk-based policies are not part of this tier according to the supplied facts. Confirm this with Microsoft before assuming it.
  • Preview status: Agent risk is in preview, so confirm its support terms before writing it into an approval.

Ask Microsoft to confirm which agent identities your tenant will see and which policy controls apply to them.

Where the current identity controls leave gaps

Identity controls for agents are improving, but several of the pieces a reviewer would rely on are still in preview, draft or concept form. The cards below cover where those gaps sit and the controls teams usually add to close them.

Agent risk policies are in preview

Conditional Access can target agent identities, but the agent risk signal that drives risk-based policies is in preview. A reviewer should not treat a risk-based block as a settled control until Microsoft marks the feature generally available. Confirm the feature status and licensing in the tenant before writing it into the approval record, and cover the interim period with a documented exception process that names who approves an agent and when it is re-reviewed.

Conditional Access docs

Enterprise grant flow is an IETF draft

The ID-JAG grant that lets a corporate IdP approve an MCP server connection is defined in an IETF draft, not a published RFC. Implementations can change before the draft is finalized, so IT should confirm which draft version a client and IdP support. Until then, pair the grant with an allowlist of approved MCP servers maintained by the platform team, so that a client cannot reach an unlisted server even if a token request succeeds.

No adopted agent identity standard yet

NIST's NCCoE published a concept paper on software and AI agent identity and authorization, and public comments closed April 2, 2026. The paper proposes a possible project, not a standard, so no control in it can yet be cited as a requirement. Reviewers should map agent identity controls to the NIST AI Risk Management Framework, which is voluntary, and record the gap so the policy can be revised when NIST publishes a next step.

NIST concept paper

Sign-in controls do not govern agent actions

Conditional Access decides whether an agent identity may obtain a token, not which records it reads, which tickets it closes, or which commands it runs once inside an application. A valid, compliant agent can still take a damaging action within its granted scope. Cover this with tool-level approval for write and delete operations, scoped application permissions, and logging of each tool call tied to the agent identity.

Identity policy does not replace tool consent

The MCP specification says hosts must obtain explicit user consent before invoking any tool, and it treats tools as arbitrary code execution. An IdP approval of the server does not change that duty, and an enterprise grant does not show that a user agreed to a specific action. Require the client to keep per-tool approval prompts enabled for sensitive tools, and make disabling them a managed setting that only administrators can change.

MCP specification

Report-only mode blocks nothing

Microsoft recommends starting the agent block policy in report-only mode, which records what the policy would have done without enforcing it. A team that approves an agent on the strength of a clean report-only log has not tested enforcement. Before switching to enforced mode, confirm which approved agent identities are excluded, review the sign-in logs for legitimate agents that would be blocked, and set a dated owner for moving the policy out of report-only.

Order of work to bring agent sign-in under policy

This sequence moves AI agent sign-in from unmanaged use to a Conditional Access policy that blocks unapproved agent identities, with MCP server connections checked against an allowlist. Each step ends with a check that tells the reviewer whether the control is working before the next one starts.

  1. Inventory agent identities and MCP servers

    The identity or platform team lists every agent that signs in with its own identity, every tool or app that runs agent sign-in, and every MCP server staff connect to from their clients. Record the owner, the sign-in method and the data each one can reach. The step is done when the list covers every agent identity visible in your directory and every MCP endpoint seen in client configurations or network logs, and an owner is named for each entry.

  2. Confirm licensing for each control

    Before writing any policy, the licensing owner checks which Microsoft licenses your tenant holds, since Conditional Access for agents depends on Microsoft 365 E7, or Microsoft Agent 365 paired with Entra ID P1 or Microsoft 365 E3. Agent risk-based policies need Entra ID P2 or Microsoft 365 E5, and agent risk is still in preview. Ask your Microsoft account team to confirm which SKUs cover each control. The step is done when a written note maps each planned control to a license you actually hold.

  3. Define the approved-agent list

    The security owner and the business owners of each agent agree which agent identities are approved for which resources, and which are blocked by default. Each approval records the owner, the permitted scope and a review date. The step is done when the approved list is stored in a controlled location and every identity in the policy exclusion group traces back to a named approval.

  4. Run the block policy in report-only mode

    Create the Conditional Access policy that targets autonomous agents with a block control, and set it to report-only, which Microsoft recommends as the starting state. Let it run while the team reviews sign-in logs for agent identities that would have been blocked. The step is done when every agent sign-in that the policy would block has been reviewed and assigned either to an approval or to a remediation item.

  5. Add exclusions for approved identities

    Add the approved agent identities to the policy exclusion group, one approval at a time, using the list from the earlier step. Keep the exclusion group small and documented, and log each change with the approver's name. The step is done when a sample of excluded identities signs in successfully and the report-only results show no unexplained blocks for approved agents.

  6. Move the policy to enforcement

    Switch the Conditional Access policy from report-only to on, after the reviewed results show that approved agents are excluded and unapproved agents are the only ones matched. Announce the change to the agent owners and the service desk in advance. The step is done when enforcement is active, a test sign-in from an unapproved agent identity is blocked and the block appears in the sign-in logs.

  7. Confirm MCP client allowlisting and consent behavior

    Check that each MCP client in use is on an approved list, and that the corporate identity provider evaluates policy before an MCP server issues an access token, as the Enterprise-Managed Authorization extension describes. Confirm with each vendor how user consent is captured before a tool runs, since the MCP specification says hosts must obtain explicit user consent before invoking any tool. The step is done when a test connection from an unlisted client is refused and the consent prompt behavior for approved clients is documented.

  8. Set log retention and review

    The security team confirms that agent sign-in logs, policy change records and MCP authorization events are retained for the period your own policy requires and that someone reviews them on a schedule you set. Ask each vendor what it logs and how long it keeps those records. The step is done when a named owner reviews the logs, the retention setting is confirmed in writing, and the approved-agent list is refreshed on the schedule your governance policy sets.

What a security reviewer asks to see for agent authentication

This table lists the evidence a reviewer should request before approving agent authentication, what each item answers, and where it comes from. Read it as a request list for the platform owner, since several items depend on the license tier and the identity provider in use. The main takeaway is that a policy on paper is not enough: the reviewer needs exported settings, sign-in results and logs that show the controls actually ran.

Evidence itemQuestion it answersWhere it comes from
Exported Conditional Access policy setWhich agent identities are targeted, and does a block policy apply to every agent not on the approved list?Entra admin center export or Microsoft Graph policy read, reviewed against the Microsoft Learn guidance on securing autonomous agents
Exclusion list for approved agent identitiesWho or what is exempted from the block, and who approved each exclusion?Conditional Access policy exclusions, plus the change record and owner approval for each agent identity
Report-only sign-in resultsWhat would the policy have blocked during the observation window, and were those agents justified?Entra sign-in logs filtered to report-only policy results before enforcement is switched on
License assignments for agent controlsDoes the tenant hold the entitlements the agent controls need, such as the Microsoft 365 or Agent 365 licenses named in the vendor documentation?Microsoft 365 admin center license report and the product licensing terms for Agent 365 and Entra ID tiers
Agent risk policy statusIs agent risk-based protection in use, and is its preview status accepted by the organization?Entra policy configuration, with the license tier that supports it and the current preview notice
MCP client allowlistWhich MCP clients and servers may connect, and who maintains the list?Endpoint management or the MCP host configuration, plus the approval record kept by IT or security
IdP policy for identity assertion grantsDoes the corporate IdP evaluate policy before an MCP server issues an access token, and which apps and scopes are permitted?IdP application and policy configuration for the Identity Assertion JWT grant flow, checked against the MCP enterprise-managed authorization extension
Sign-in and audit log destination and retentionAre agent sign-ins and grant decisions retained where the security team can search them, and for how long?SIEM or log platform configuration, the Entra diagnostic settings, and the retention setting approved by the compliance owner

Questions buyers ask before approving agent sign-in

Can AI agents sign in with our company SSO?

Yes, but the mechanism depends on the agent and the platform. Microsoft Entra can govern autonomous agents that authenticate with their own agent identity, so the agent is treated as a principal you can see, scope and block. For MCP servers, the MCP Enterprise-Managed Authorization extension lets the client exchange a user's SSO identity assertion with the corporate identity provider for an Identity Assertion JWT Authorization Grant, so the IdP evaluates policy before the MCP server issues an access token. Before approving any tool, confirm with the vendor which of these sign-in paths it supports, whether a human user or a separate agent identity is used, and how revocation works when an agent is removed.

Which Microsoft license is needed for Conditional Access on agents?

Conditional Access for agents requires Microsoft 365 E7, or Microsoft Agent 365 paired with either Entra ID P1 or Microsoft 365 E3. Agent risk-based policies need Entra ID P2 or Microsoft 365 E5, and agent risk is still in preview, so confirm its status before you write a control that depends on it. Licensing is the first cost driver: check which of these bundles your tenant already holds, because the gap between them determines whether you buy a new license or only add an agent management product. Ask your Microsoft account team to confirm the current SKU mapping in writing before budgeting.

Why does the agent block policy start in report-only mode?

Microsoft recommends starting a block policy in report-only mode so you can see which sign-ins it would have affected before it enforces anything. The policy you want is a block that excludes approved agent identities, so approved agents keep working while unapproved ones are stopped. Report-only lets you find agents you did not know about and confirm that the exclusion list is correct. Review the sign-in logs for a period your change board accepts, add legitimate agents to the exclusion list, and only then switch the policy to enforce. Skipping this step is the most common way to break a business process on day one.

Is MCP enterprise-managed authorization ready for production given the draft grant?

The grant format is still an IETF draft, so treat the design as a working standard rather than a settled one, and plan for changes. The IETF OAuth working group defines the ID-JAG in draft-ietf-oauth-identity-assertion-authz-grant, and the MCP extension depends on it. Before a production decision, ask the vendor or server maintainer which version of the extension they implement, whether their IdP supports the grant, how they handle a draft revision, and whether they have a tested rollback. Pilot the flow with a small group and a non-sensitive server first.

What does the NIST concept paper change for agent identity?

The NIST NCCoE concept paper on software and AI agent identity and authorization, released February 5, 2026, proposes applying existing identity standards to agents and asks for public input. It does not create a requirement you must meet today. Public comments closed on April 2, 2026, and the paper points toward a potential project. Use it as a planning reference: it helps you ask vendors how they identify agents, separate agent authority from user authority, and record who approved an action. Track the NCCoE output for any resulting guidance and confirm with your compliance team how it maps to your own control framework.

What drives the cost of agent identity controls?

Cost has four main drivers. The first is licensing tier, since Conditional Access for agents and agent risk policies sit in different Microsoft bundles. The second is the number of agents and users, which determines how many identities you must inventory and review. The third is identity provider work: configuring Entra or another IdP for agent identities, grants and exclusion lists takes engineering time. The fourth is log storage, because report-only review and sign-in audit trails generate data you must keep for your retention period. Licensing is recurring, while configuration is usually one-time with ongoing review. Ask any provider for a quote that separates these components and states what is included and excluded.

What can our team do itself, and when do we need outside help?

Your team can inventory agents, check which Microsoft licenses you hold, enable report-only policies, and review sign-in logs. Those steps depend on your own tenant administrators and do not need outside help. Outside help is most useful for integrating the IdP with MCP servers, designing exclusion lists and scopes across many agents, testing the enterprise-managed authorization flow, and documenting controls for an assessment. DeployOpen plans, implements and tests self-hosted platforms in your own infrastructure, and runs security testing that includes AI and agent systems, but it does not issue audit reports or certifications. Scope and deliverables are agreed in writing before work starts, so ask for a fixed-scope proposal that names the agents and identity systems in it.

How DeployOpen helps teams scope agent identity and access

DeployOpen plans, implements and documents the agent identity and access controls an organization sets up in its own environment, from scoping which agents get identities to handing over tested policies. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory which AI agents and MCP servers staff already use and which identity each one authenticates with
  • Map the systems, data and tools each agent needs so grants follow the smallest set of permissions
  • Agree in writing which Entra Conditional Access, IdP and MCP authorization controls are in scope and which are out

How we build

  • Configure agent identities and Conditional Access policies in report-only mode before any enforcement
  • Set up enterprise-managed authorization so the corporate IdP evaluates policy before an MCP server issues tokens
  • Test block policies and approved-agent exclusions against sample agent sign-ins to confirm they behave as written

How we hand over

  • Deliver the policy configuration, role mappings and exclusion lists as documented, version-controlled artifacts
  • Document the evidence your auditors or assessors would ask for, such as sign-in logs and approval records
  • Walk through the runbook for approving, reviewing and revoking an individual agent identity with your team

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers
  • Revisit policies when Microsoft, the IETF or NIST publish changes to agent identity standards
  • Re-test access paths after new agents, MCP servers or identity providers are added to the environment

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.