Skip to content
home

Keep SharePoint Sites Out of Microsoft 365 Copilot

The question I hear most before a Copilot rollout is: can we stop it reading the HR and finance sites? There is no single switch labelled exclude from Copilot. What you have is a set of controls that work at different levels, and the order you use them in matters. Here is what each one does, what it does not do, and how I combine them.

Quick answer

How to keep sensitive SharePoint sites out of Microsoft 365 Copilot: fix permissions first, then use Restricted Content Discovery, labels and access control.

Free tool: score your Copilot readiness in 2 minutes
Daniel AwokunleDaniel AwokunleUpdated 12 November 2026 5 min read
Watch first: the whole guide in 62 secondsWatch on YouTube
Video transcript

Can Microsoft 365 Copilot see your HR files? If your permissions are messy, it probably can.

Watch this. Ryan works in sales. He asks Copilot about this year's salary changes, and it answers straight from a confidential HR spreadsheet.

Copilot doesn't break your permissions. It shows people anything they can already open. One old Everyone permission is all it takes.

Layer one. Fix permissions first. Remove Everyone and big company groups from sensitive sites.

Layer two. Turn on Restricted Content Discovery. One PowerShell command hides the site from Copilot and company-wide search, without changing who has access.

Layer three. Lock the site to one group, and add sensitivity labels so the protection travels with the files.

Then test it as a normal user. Copilot finds nothing it shouldn't.

The full step-by-step guide is free at winstack365.com.

1. Understand how Copilot sees your content

Microsoft 365 Copilot only works with content the signed-in person can already open. It respects SharePoint permissions, sensitivity labels and your other protections. So if Copilot shows someone a file they should not see, the real problem is that the file was shared too widely.

That is why the first fix is always permissions. The other controls in this guide are extra layers, and they work best on top of a site whose access is already correct.

2. Fix permissions on the sensitive sites first

Open the SharePoint admin center, go to Sites, then Active sites, and select the site. Check the Permissions panel for owners, members and visitors.

  • Remove the Everyone except external users group and any broad groups such as All Staff from sensitive sites.
  • Replace large groups with a small security group or Microsoft 365 group that matches who really needs access.
  • Check for sharing links set to Anyone or People in your organization on sensitive folders, and delete the ones nobody needs.
  • Look for folders and files with unique permissions that nobody has reviewed.

Do this before anything else. Nothing below replaces it.

3. Use Restricted Content Discovery for a quick, targeted hide

Restricted Content Discovery stops a site's content from showing up in organization-wide search and in Copilot answers for people who are not actively working in that site. It does not change permissions, so people who have access can still open the files directly.

It is a SharePoint Advanced Management feature, which is included when your organization has Microsoft 365 Copilot licences. You switch it on per site with SharePoint Online PowerShell:

Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/HR -RestrictContentOrgWideSearch $true

To check which state a site is in, or to turn it off again:

Get-SPOSite -Identity https://yourtenant.sharepoint.com/sites/HR | Select-Object Url, RestrictContentOrgWideSearch
Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/HR -RestrictContentOrgWideSearch $false

Use this for sites where permissions are fine but you do not want the content surfacing in broad searches, such as a finance archive or a legal matters site. Allow some time for search to update after you change it.

4. Use Restricted Access Control to limit who can reach a site

Restricted Access Control goes further. It limits access to the site and its content to the members of a security group or Microsoft 365 group you choose, even if someone has been given access through a link or a different group. It also needs SharePoint Advanced Management.

Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/HR -RestrictedAccessControl $true
Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/HR -AddRestrictedAccessControlGroups <group-id>

Pick a small group, test with a user who is not in it, and confirm that they cannot open the site. People outside the group lose access completely, so tell the site owners before you switch it on.

5. Protect the files themselves with sensitivity labels

A sensitivity label that applies encryption travels with the file. Copilot can only use content from an encrypted file if the person has the right to extract it from the label's permissions, so you control this through the label's settings in Microsoft Purview.

Create a Confidential label for HR, legal and finance files, apply it by default to the libraries that hold them, and give only the right people usage rights. Labels protect the file wherever it is copied to, which site-level controls cannot do.

6. Restricted SharePoint Search is a short-term brake

If you need to start a pilot before you have fixed oversharing, Restricted SharePoint Search lets you limit tenant-wide search and Copilot to an allowed list of sites. It is meant as a temporary measure while you clean up permissions, and the allowed list has a size limit, so check Microsoft's current figure.

Set-SPOTenantRestrictedSearchMode -Mode Enabled
Add-SPOTenantRestrictedSearchAllowedList -SitesListFileUrl C:\temp\allowed-sites.csv

Plan to turn it off once permissions are in order, because it narrows what Copilot can do for everyone.

7. Test as a normal user, then review regularly

Sign in as a test user in the pilot group, not as an admin. Ask Copilot and Microsoft Search for terms from the sensitive sites, such as salary, redundancy or contract. If anything comes back that the user should not see, go back to step 2 for that site.

Then set a review each quarter. New sites are created all the time, and the data access governance reports in SharePoint Advanced Management show which ones are shared too widely.

Want this done for you?

I build this for clients every week. Book a free 30-minute call and I'll tell you exactly what your team needs.

Free: the Microsoft 365 clean-up checklist

The 12 checks I run before building anything in a client's tenant: security, sharing, files and quick wins. Two pages, PDF.

Used only to send the checklist and the odd useful tip. Never shared or sold.

Daniel Awokunle · replies within a day

Tell me what's slowing your team down.

Thirty minutes, no cost, no pitch deck. You'll leave knowing exactly what to build and what it should cost.

Book a free 30-min call
  1. Step 1

    Free 30-min call

    Show me the problem. I'll tell you what I'd build and how long it takes.

  2. Step 2

    Clear quote

    A fixed price and timeline in writing, usually within a day.

  3. Step 3

    Built and handed over

    Built in your own Microsoft 365, with a walkthrough for your team.