The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi,
I had the same issue. My agent worked initially, but after about a day it started returning a 403 error when accessing files in its SharePoint knowledge source, even though no permissions had changed.
I noticed the SharePoint site had a warning saying the site's content wouldn't be available to AI agents. I moved the same files to another SharePoint site that didn't have this warning and changed the agent's knowledge source to that site. It immediately started working again.
Both sites are labeled private, so it doesn't appear to be simply a public vs. private Team issue. It may be related to SharePoint's Restricted Content Discovery setting. I'm still not sure why the restriction appeared after the agent had initially worked.