Skip to the matchbox tray

How to Stop Copilot From Finding Sensitive SharePoint Content

Gregory Zelfond 705 views

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 ...

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 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.

SharePoint Site access panel showing site owners, members and visitors permissions

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

  1. At the library level, click on the Gear Icon > Library SettingsSharePoint gear icon settings menu with Library settings highlighted
  2. Click on More library settingsLibrary settings panel with the More library settings link highlighted
  3. Click on Advanced settingsLibrary settings page with Advanced settings highlighted
  4. 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.Library search setting set to No to hide items from search results

Disable search at the Site Level

  1. From the Site Homepage, click the Gear Icon > Site informationSharePoint gear icon settings menu with Site information highlighted
  2. Click on View all site settingsSite information panel with View all site settings highlighted
  3. Under the Search section, choose Search and offline availabilitySite settings Search section with Search and offline availability highlighted
  4. Under Indexing Site Content > Allow this site to appear in search results, choose No. Click OK to save the changes.Indexing Site Content setting with No selected to hide the site from search

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.

SharePoint admin center site settings with Restrict content discovery turned on

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.

Site AI panel in SharePoint used to set a custom agent as the main agent

Source: Gregory Zelfond · sharepointmaven.com

From the Same Series