A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hello @Miguel de Frutos
Thank you for reaching out to Microsoft Q&A.
Based on the currently available Azure AI Foundry documentation, your understanding appears to be largely aligned with the supported OAuth identity passthrough model for MCP tools.
1. Is per-user OAuth passthrough to an MCP tool supported for a Foundry agent published to Teams?
Azure AI Foundry supports OAuth Identity Passthrough for MCP tools, where Agent Service:
- Prompts the user for consent
- Completes the OAuth sign-in flow
- Securely stores user-scoped tokens
- Uses those tokens when invoking MCP server tools on behalf of the user
However, the available documentation describes this capability specifically within the context of Azure AI Foundry Agent Service invoking MCP tools.
Based on the documentation currently available, there is no explicit confirmation that a Foundry agent published through Microsoft Teams or Microsoft 365 Copilot can forward the signed-in user's delegated identity/token through the Activity Protocol and Bot Service channels to arbitrary MCP tools in the same manner.
As a result, we cannot currently confirm a supported architecture where a Teams-published Foundry agent passes the user's OAuth token (OBO) directly to an MCP tool.
2. What is the supported pattern today for per-user identity?
The documented and supported approach today is the Azure AI Foundry OAuth Identity Passthrough mechanism for MCP servers and similarly for supported Agent-to-Agent scenarios, where Agent Service manages:
- User consent
- Token acquisition
- Token storage
- Token refresh
- User-context invocation of downstream MCP tools
The documentation also notes several requirements, including:
- User and Foundry project must belong to the same tenant
- Cross-tenant token exchange is not supported
-
offline_accessshould be included to support token refresh
While this provides a supported per-user identity model within Foundry, the documentation does not currently describe an equivalent Teams-specific flow that forwards Teams user tokens to MCP tools.
If your scenario requires guaranteed per-user identity propagation from Teams to backend services, a custom architecture such as:
- Custom Teams application with Teams SSO
- Custom bot implementation
- Backend OBO flow managed directly by your application
may be necessary, depending on your requirements.
3. Why might the MCP server not be receiving tool calls?
Given your observation that:
- OAuth consent completes successfully
- The agent reports "Resuming after OAuth consent"
- No
tools/listortools/callrequests ever reach the MCP server - The agent subsequently reports that it cannot access the tool
this behavior is consistent with a scenario where the Teams/M365 channel is not participating in the MCP OAuth passthrough mechanism expected by the Agent Service flow.
However, the current documentation does not explicitly document this behavior,
4. Is this capability on the roadmap?
At this time, the publicly available documentation does not provide any roadmap information or timeline regarding:
- Per-user OAuth passthrough from Teams/M365 channels to MCP tools
- Delegated token forwarding from Teams-published Foundry agents to MCP servers
Therefore, we are unable to provide an official statement or timeline regarding future support.
Please refer this
Set up authentication for Model Context Protocol (MCP) tools – OAuth identity passthrough: https://learn.microsoft.com/azure/foundry/agents/how-to/mcp-authentication#oauth-identity-passthrough
Agent2Agent (A2A) authentication – OAuth identity passthrough: https://learn.microsoft.com/azure/foundry/agents/concepts/agent-to-agent-authentication?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#oauth-identity-passthrough
Agent identity concepts in Microsoft Foundry – Tool authentication & agent identity: https://learn.microsoft.com/azure/foundry/agents/concepts/agent-identity#tool-authentication
Microsoft MCP Server for Enterprise overview: https://learn.microsoft.com/graph/mcp-server/overview
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!