web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Error message for Team...
Copilot Studio
Suggested Answer

Error message for Teams Embedded Agent

(1) ShareShare
ReportReport
Posted on by 42
We are receiving an error message for a Teams embedded agent when trying to use a SharePoint knowledge source. It works successfully while testing in the Power Platform web environment and seems to be working correctly for agents  that are published elsewhere, but in Teams we get the attached message "Connect to Continue" for a FederatedKnowledgeSearchOperation connection. Allowing the connection seems to time out and then return an error. Is this a known issue? We be believe we have been able to use SharePoint before, and were wondering if its a new issue or perhaps related to new settings in an environment or for the SharePoint site.
Categories:
I have the same question (0)
  • Assisted by AI
    Prasad-MSFT Profile Picture
    Microsoft Employee on at
    Why does this happen?
    Teams requires delegated authentication:
    When an agent in Teams tries to access SharePoint, it often needs the user to grant permission (delegated OAuth). The “Connect to Continue” prompt is Teams asking for this consent.
    Timeouts or errors:
    If the authentication flow is blocked (by browser settings, Teams policies, or tenant restrictions), or if the SharePoint site has new permission settings, the connection can time out or fail.
    Environment differences:
    The Power Platform web environment may use your admin/service account or cached credentials, while Teams always requires the current user’s delegated permissions.
    Possible Causes
    • Recent changes to SharePoint site permissions (e.g., restricted access, MFA, or guest/external user settings).
    • Teams app permission policies or conditional access policies blocking the OAuth flow.
    • Browser or Teams client issues (pop-up blockers, outdated client, etc.).
    • Expired or missing consent for the FederatedKnowledgeSearchOperation connection.
    What to do:
    Check SharePoint permissions:
    Ensure all intended Teams users have at least read access to the SharePoint site and its content.
    Consent to permissions:
    When prompted, allow the connection and ensure pop-ups are not blocked. Try in the Teams web client if the desktop client fails.
    Clear cached connections:
    In Teams, sign out and back in, or clear Teams cache, to force a fresh authentication flow.
    Check Teams and SharePoint policies:
    Review any recent changes to Teams app permission policies or SharePoint site settings that could block delegated access.
    Test with another user/account:
    See if the issue is user-specific or affects all users.
  • Suggested answer
    Beyond The Platforms Profile Picture
    219 on at
    Hi! The issue you're experiencing is known and has been reported by other community members.

    The error related to FederatedKnowledgeSearchOperation in Teams is typically caused by improper handling of delegated authentication tokens: unlike the Copilot Studio web environment, Teams manages connection persistence differently, which can lead to timeouts or credentials not being passed correctly.
    A few things to check:
     
    • Make sure the users involved have an active Microsoft 365 Copilot license on their work account — without it, access to SharePoint/OneDrive knowledge sources fails at runtime.
    • Verify that users have at least read permissions on the SharePoint site in question.
    • Check the Graph API permissions of the Teams app in the Entra ID portal (e.g. Sites.Read.All, Files.Read.All) and ensure admin consent has been granted.
    • Try removing and re-adding the SharePoint knowledge source in the agent.
     
    As a workaround, you can consider using a Power Automate flow as an intermediary to query SharePoint instead of the direct knowledge source — less elegant, but more stable in Teams.

    If the issue persists, I'd recommend opening an official support ticket on Microsoft Admin Center and attaching the Conversation ID visible in the error (SystemError), so the Microsoft team can investigate any recent platform-side changes.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 455

#2
Vish WR Profile Picture

Vish WR 273

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 202 Super User 2026 Season 1

Last 30 days Overall leaderboard