Forum Discussion

sujazv2024's avatar
sujazv2024
Copper Contributor
Sep 04, 2025

Copilot Agent in SharePoint App

I created a new Copilot agent (using GPT-4) that refers to knowledge from SharePoint sites and published to SharePoint site. I configured 'Authenticate with Microsoft' under 'Security'. Approved the agent from SharePoint site and set as 'default' for the site. It works as expected when launched from a SharePoint web page. However, when the agent is launched from SharePoint app, it says, 'connect to your Microsoft account' and if I click Sign in button, it throws an error 'Cannot connect'. Then the agent fails. What am I missing here?

3 Replies

  • sujazv2024's avatar
    sujazv2024
    Copper Contributor

    I have used the sharing link of the agent and attempted accessing from SharePoint site. However, from the Sharepoint app, on clicking this link, it prompted me to sign in and when I attempted to sign in, it throws an error ' Refresh token expired'. 

  • Ibrahimovic's avatar
    Ibrahimovic
    Copper Contributor

    why don't you share a hyperlink for that agent and then make it available as a hyperlink within the SP. As long as your agent is pointing to the SP for knowledge it should work. 

    • sujazv2024's avatar
      sujazv2024
      Copper Contributor

      I have Editor and viewer permissions on the agent itself and is hosted in SharePoint in the Agent Link webpart. 

      Tested with a link to the agent in the SharePoint site, it asks me to sign in and then when I clicked sign in button, it throws an error message 'refresh token expired'

       

Resources