Forum Discussion

nargess's avatar
nargess
Copper Contributor
Jun 11, 2025

Questions Regarding Copilot 365 Agents and AADSTS65002 Error

Hi, My colleagues and I would like to test Microsoft Copilot 365 before rolling it out across the entire organization, and we have a few questions regarding the behavior and storage of agents:
Agent Storage Locations:
Agents created in Copilot Studio: Stored in Cosmos DB.
Agents created via a SharePoint site: Stored under Site Contents > Site Assets > Copilots.
Agents created in a SharePoint document library: Stored in the current folder of the document library where the agent was created.

men Copilot agents used in Microsoft 365 Business Chat and Teams, where are these agents stored?Additionally, several colleagues and I are encountering the following error when attempting to use Copilot the agent in Teams:
"Consent between first party application and first party resource must be configured"
Error code: AADSTS65002

**For context, I have both an E5 license and a Copilot 365 license.

Thank you in advance

1 Reply

  • Sephie's avatar
    Sephie
    Iron Contributor

    First, go to Application Registration at portal.azure.com to authorize Microsoft Graph and Office 365 SharePoint Online permissions for Azure AD applications, clear your browser cache and log in again, and if you get an AADSTS65002 error, then the administrator needs to configure the correct Authentication Redirection URI in Azure AD.

Resources