How to Stop Copilot From Finding Sensitive SharePoint Content
As Copilot AI gains popularity and adoption within organizations, there is a growing concern about governance and the fact that the mighty AI might find and surface confidential and sensitive… The ...

As Copilot AI gains popularity and adoption within organizations, there is a growing concern about governance and the fact that the mighty AI might find and surface confidential and sensitive information. So the natural question is how to restrict Copilot’s access to certain content. In this article, I will present you with several options to consider.
Option 1: Clean up the data
The first option is more of a housekeeping one. Since the same data might be located in multiple locations, it is often just a matter of cleaning it up. That means removing duplicates or older copies of the same content/files. It might also mean reorganizing it in proper containers, like sites and libraries. This will not only help users access and make sense of data, but also help AI find the latest, most accurate content.
Option 2: Set up proper permissions/restrict access
Once you organize the content correctly, the next step/option is to set up proper permissions. Just like with regular keyword search, Copilot AI honors security trimming. That means that it only goes after the content that the user already has access to. So making sure users have proper access is critical. This means giving only the least access required, not oversharing, and removing anyone who shouldn’t have access to the content in the first place. I suggest you check out this post to learn more about the different ways to set permissions on SharePoint content.

Option 3: Disable search on a site and the library
The next option to consider is to disable the indexing of content on a site or library level. This is the same option you would use to prevent regular keyword searches. You can turn off indexing on a specific library or the entire site. Here is how to achieve this:
Disable search at the Library Level
- At the library level, click on the Gear Icon > Library Settings

- Click on More library settings

- Click on Advanced settings

- Under the Search section > Allow items from this document library to appear in search results?, select No. Click OK at the bottom of the page to save the changes.

Disable search at the Site Level
- From the Site Homepage, click the Gear Icon > Site information

- Click on View all site settings

- Under the Search section, choose Search and offline availability

- Under Indexing Site Content > Allow this site to appear in search results, choose No. Click OK to save the changes.

Option 4: Restrict Content Discovery
This option is my favorite, especially in “emergency” situations. It is called Restricted Content Discovery, or RCD for short. It is a site-level setting that hides the content of a specific site from Copilot and from organization-wide search. The beauty is that it doesn’t touch permissions or disable indexing, unlike the previous options. Users who have access to the site can still go to it and open the files directly. Copilot will treat the site like a mother-in-law and ignore it completely.
Check out this earlier post of mine on how to configure RCD.

Option 5: Create custom Copilot agents for certain site content
Another option, though it is more of a special use case, is to create custom agents. By default, Copilot Site AI is grounded on the entire SharePoint site. However, most often you need Copilot to target specific content, such as files and folders. In that case, creating custom agents and publishing them to the site is a wise decision. Please follow these instructions to learn how to create custom agents. After doing so, you can also make the agent you created the default for the site.
