Microsoft 365 Copilot
The Federated Directory Teams app includes an agent for Microsoft 365 Copilot. With it, people in your company can ask Copilot questions such as "Who is the manager of Jane Doe?" or "Find the colleagues in the marketing department" and get answers from your Federated Directory. The agent uses our Model Context Protocol (MCP) server.
Every user signs in to Federated Directory individually (OAuth 2.0) and only sees the contacts and attributes that are shared with them through a group. All tools are read-only.
Prerequisites
- A Federated Directory group containing the members whose contact data should be available in Copilot. When creating the group, make sure Microsoft 365 Copilot is selected under Allowed applications (or choose the "all applications" option). This can not be changed after the group is created, so if your existing groups don't allow Microsoft 365 Copilot, create a new group for it.
- The Federated Directory app for Microsoft Teams, version 1.1.0 or later, available to your users. See Installation.
- Access to Microsoft 365 Copilot or Microsoft 365 Copilot Chat. The agent doesn't use your Microsoft 365 data, so a Microsoft 365 Copilot license isn't required.
No application to register
Unlike a custom integration, you don't need to create an Application or enter any OAuth settings. Microsoft 365 Copilot is built into Federated Directory, and the agent in the Teams app is already configured to use it.
Configuration steps
- Create a group in Federated Directory with the members and shared attributes you want to make available, and select Microsoft 365 Copilot under Allowed applications. Only the shared attributes of the group are returned to Copilot.
- Make the Federated Directory app available to your users, for example by deploying it from the Integrated Apps portal in the Microsoft 365 admin center. If your organization manages agents centrally, also allow the Federated Directory agent there.
Using it
Users open Copilot (for example in Teams or at m365.cloud.microsoft/chat) and select Federated Directory in the list of agents. The conversation starters give a few examples to begin with.
The first time a user asks something that needs Federated Directory data, Copilot shows a Sign in to Federated Directory button. The user signs in and gives consent. If Copilot then reports that the Federated Directory tools couldn't be loaded, refresh Copilot and ask again.
Each answer shows Federated Directory as its source. Users that are not a member of a group that allows Microsoft 365 Copilot will not see any data. A user can revoke access at any time under Connected apps in their account.
For the list of available tools, see the MCP documentation.
Troubleshooting
| Problem | Possible cause |
|---|---|
| The Federated Directory agent isn't listed | The Federated Directory app isn't available to the user, is older than version 1.1.0, or the agent is blocked in your organization. |
| Copilot says the tools couldn't be loaded | This can happen right after the first sign-in. Refresh Copilot and ask again. |
| Sign-in succeeds, but the user can't give consent | The user is not a member of a group that allows Microsoft 365 Copilot as an application. |
| Tools return no contacts or fewer details | The group doesn't contain the requested contacts, or doesn't share the requested attributes. |