Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use a Work IQ connection in a Microsoft Foundry project to let a Foundry agent use Microsoft 365 context from emails, meetings, files, chats, and other work data. After you create the project connection, you can add Work IQ to an agent or toolbox and use it in prompts. Requests run in the context of the signed-in user and honor Microsoft 365 permissions, sensitivity labels, and tenant policy.
This quickstart summarizes the project-level connection flow. For the complete Foundry article and SDK examples, see Connect agents to Microsoft 365 with Work IQ.
Prerequisites
Before you start, make sure you have:
- A Microsoft Foundry project with a deployed model.
- The Foundry Project Manager role on the Foundry project to create the Work IQ connection.
- The Foundry User role on the Foundry project for the developer identity, agent runtime identity, and users involved in OAuth flows.
- A Microsoft 365 Copilot license for each user who calls Work IQ through your agent.
- A Microsoft Entra Global Administrator who can grant admin consent for the
WorkIQAgent.Askdelegated permission.
Note
Work IQ connections in Foundry use delegated Microsoft Entra authentication. Application-only authentication isn't supported.
Set up your Microsoft Entra app
An Entra admin must create or configure an app registration before you create the Work IQ connection in Foundry.
- In the Microsoft Entra admin center, go to Entra ID > App registrations.
- Create a new app registration or open an existing app registration for your Foundry agent.
- Copy the Application (client) ID and Directory (tenant) ID.
- Add a client secret and copy the secret value.
- Under API permissions, add the Work IQ delegated permission
WorkIQAgent.Ask. - Select Grant admin consent for the tenant.
If Work IQ doesn't appear when you search for API permissions, the Work IQ service principal might not be provisioned in your tenant. For setup guidance, see Enable Work IQ APIs.
Connect the Work IQ MCP tool in Foundry
Connect the remote Work IQ MCP server as a tool in your Foundry project.
Open your project in Microsoft Foundry.
In the left navigation, select Tools.
On the Tools page, select the Tools tab.
Select Connect a tool.
In Select a tool, select the Catalog tab.
Search for Work IQ MCP.
Select Work IQ MCP, and then select Create.
Confirm or enter the Work IQ MCP endpoint.
https://workiq.svc.cloud.microsoft/mcpConfigure OAuth with the values from your app registration.
Field Value Client ID Application (client) ID from your app registration Client secret Client secret value from your app registration Authorization URL https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorizeToken URL https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/tokenRefresh URL https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/tokenScopes api://workiq.svc.cloud.microsoft/WorkIQAgent.Ask,offline_accessReplace
{tenant-id}with the Directory (tenant) ID from your app registration.Save the tool connection.
Add the redirect URI to your app registration
After Foundry creates the tool connection, it displays an OAuth redirect URL. Add this URL to your app registration.
- In the Microsoft Entra admin center, open the app registration.
- Select Authentication > Add a platform > Web.
- Paste the OAuth redirect URL from the Foundry tool connection into Redirect URIs.
- Select Configure.
Add Work IQ to an agent
After the Work IQ MCP tool connection is available in the project, add Work IQ to an agent.
- Open the Foundry project.
- Open the agent that should use Microsoft 365 context.
- Add the Work IQ MCP tool to the agent or add it to a toolbox that the agent uses.
- Select the Work IQ tool connection that you created.
- If Foundry asks you to configure MCP tool access, allow the Work IQ tools that the agent should be able to call. You can also choose whether MCP tool calls require approval or are automatically approved, based on your organization's review and safety requirements.
- Save or publish the agent configuration.
Try a Work IQ prompt
Ask your Foundry agent a question that requires Microsoft 365 context. The first time a user sends a prompt that uses Work IQ, Foundry might prompt the user to sign in and consent to access.
For example:
Summarize my upcoming meetings for today.
Find recent messages from my manager from this week.
Retrieve the latest email related to the quarterly business review.
Foundry routes the request to Work IQ. Work IQ retrieves and reasons over the user's Microsoft 365 data, then returns a grounded response to the agent.
The response depends on the signed-in user's Microsoft 365 permissions, the application's OAuth permissions, and tenant policy.