Forum Discussion

Swami_Nawale's avatar
Swami_Nawale
Copper Contributor
Dec 10, 2024

Copilot Agent with Graph API

 I am building a Copilotagent and trying to integrate MicrosoftGraphAPI. However, I am encountering an "Authorization" error while interacting with the agent. For now, I am simply calling the "/me" endpoint to retrieve the logged-in user's information.

Here are the steps I followed for app registration:
1. Registered the app in Azure AD.
2. Generated the client ID and secret.
3. Under API permissions, granted admin consent for the User.Read scope.

The part where I am getting confused is when I followed the documentation, it mentions registering an app on "dev.teams.microsoft.com" to get the ID. However, I am only getting the ID in Azure AD. This is my first time working on something like this, so I am a bit unsure. :(

Attaching the reference docs links here as well.
1. Authentication schemes for API plugins for Microsoft 365 Copilot
https://lnkd.in/dzjufNsC

API plugins for Microsoft 365 Copilot
https://lnkd.in/dpWMvNp6

Could anyone help me resolve this or share their experience with this integration. that would be really helpful 😊

No RepliesBe the first to reply

Resources