Study FAQ
How do I verify that a Dataverse MCP agent preserves each user's access?
Also asked as 2
- How can I prove that two employees see only their own permitted records through Dataverse MCP?
- What authorization tests should I run for a user-scoped Dataverse MCP connection?
Answer
Use an authentication path that preserves each user's identity end to end in the selected client. In Microsoft Foundry, supported individual paths include Microsoft Entra delegation for eligible tools and OAuth identity passthrough, where each user signs in to the provider. For Foundry OAuth passthrough, use a user in the project's tenant with an appropriate project role, such as Foundry Agent Consumer. Check support for the exact MCP server and authentication method. In Foundry connections that support shared authentication, callers share the configured identity. For Dataverse MCP, confirm the identity and permissions of the exact supported client connection.
In a nonproduction Dataverse environment, create synthetic records for two restricted users with different row access. Verify their effective roles, teams, sharing, and column permissions first. Use both identities to request permitted records and the other user's restricted record, then request a secured field on an otherwise readable row. Review the actual tool results as well as the agent's answers. A client can suppress data it received, so the answer alone cannot demonstrate the boundary.
Limit visible tools to the required operations. If the deployment must prove server-side write denial, exercise a supported write action in a separately controlled test against a disposable row and confirm no change. If the write tool is absent, record that the test established tool selection only. Treat unexpected access as a reason to inspect the effective principal before expanding the agent's use.
Microsoft references
- Set up MCP server authentication - Microsoft Foundry
- Connect to Dataverse with model context protocol (MCP) - Power Apps
- Ownership-based security in Microsoft Dataverse - Power Platform
- Column-level security - Power Platform
- Connect to Dataverse with model context protocol in Microsoft Copilot Studio - Power Apps
Full explanation
AB-400: Dataverse MCP and Work IQ Access for Agents
Study guide · AB-400
Read the full explanation