# How do you stop Copilot showing confidential office files to everyone?

> Copilot relies on the permissions you already have: if they are too wide, it surfaces confidential files. Here is how to find sites open to everyone and limit them.

- Author: Gianluca Iunco (https://www.gianlucaiunco.com/en/)
- Published: 2026-11-11
- Series: AI at the office
- Tags: Microsoft 365, Copilot, SharePoint
- URL: https://www.gianlucaiunco.com/en/blog/how-do-you-stop-copilot-showing-confidential-office-files-to-everyone

*Automatic translation from Italian. The Italian version is the reference text: https://www.gianlucaiunco.com/blog/come-evitare-che-copilot-mostri-a-tutti-i-file-riservati-dell-ufficio.md*

## In short

Copilot only shows what the user can already open, so the risk is **overly wide permissions**. Find exposed sites with the SharePoint reports, hide them from Copilot temporarily, then fix the access.

## Summary: Copilot and permissions in 4 steps

1. **Find exposed sites**: Run the Data access governance reports in the SharePoint admin center.
2. **Hide sensitive sites**: Turn on Restrict content from Microsoft Copilot for sites under review.
3. **Fix the access**: Ask owners to review who has access, or limit the site to a group.
4. **Re-enable search**: Once permissions are fixed, turn the restriction off for the site.

SharePoint admin center: Reports → Data access governance · Sites → Active sites → Settings

## Why can Copilot show files you didn't know existed?

Copilot doesn't bypass any access rule: in its answers it uses only the content the person asking can already open, based on the same permissions as SharePoint, OneDrive and Teams. The trouble starts when those permissions are too wide. A payroll folder shared with "all colleagues" years ago is still open to everyone, but nobody ever found it because nobody knew where it was. Copilot finds it in seconds if someone asks it to "summarise last year's contracts".

So before giving Copilot to your staff, it is worth tidying up access. Microsoft states that prompts, responses and data read through Microsoft Graph are not used to train the foundation models: the risk is not leakage to the outside, it is visibility inside the company.

## What do you need to run the checks?

You need an account with the **SharePoint administrator** role. The data access reports and the option to limit site visibility require SharePoint Advanced Management, which is included with Microsoft 365 Copilot licences. If you don't have those licences, or you can't see the menus below, ask your IT provider to check your plan: without a licence the reports and corrective actions aren't available.

## How do you find sites open to too many people?

1. Sign in to the SharePoint admin center.
2. Expand **Reports** and choose **Data access governance**.
3. Run **Site permissions across your organization** first: it shows which sites have the most users, external guests or the "Everyone except external users" group, meaning all internal users.
4. Run the **Shared with 'Everyone except external users'** report to see where, in the last 28 days, someone opened content to the whole company.
5. Also look at **Sharing links** for the sites with the most sharing links created recently.

Microsoft suggests running the permissions reports once a quarter and the activity reports once a month. Start with the sites that hold accounting, HR, contracts and clients.

## How do you hide a site from Copilot right away?

If you don't have time to fix everything now, you can take a site out of organisation-wide search and Copilot answers while you review its permissions.

1. In the SharePoint admin center open **Sites → Active sites** and select the site.
2. Open the **Settings** tab.
3. Turn on **Restrict content from Microsoft Copilot** and select **Save**.

Alternatively, from PowerShell with the SharePoint Online module:

```
Set-SPOSite -Identity SITE_ADDRESS -RestrictContentOrgWideSearch $true
```

Replace SITE_ADDRESS with the full address of the site, for example the one shown in the list of active sites. To check whether the restriction is active on a site, the command `Get-SPOSite -Identity SITE_ADDRESS | Select RestrictContentOrgWideSearch` shows the current value.

This measure is temporary and doesn't change permissions: anyone who can open the files still can, and the files stay in the search index. The site shows a "Restricted" tag and loses the Copilot buttons. It isn't instant: on very large sites it can take more than a week. Use it only on genuinely sensitive sites, because too many exclusions make Copilot's answers poor.

## How do you really fix the permissions?

The lasting fix is to remove access from people who don't need it.

- For a quick lock, **Restricted access control** limits a site to a specific group.
- To involve the people who know the content, use **Site access review**: it asks site owners to review who has access.
- To understand what changed, the **Change history** report lists recent permission changes.

Once the site is sorted, set **Restrict content from Microsoft Copilot** back to off (or use `$false` in the command) so it becomes searchable again.

## Why isn't a one-off check enough?

Permissions change every day: a new sharing link, a guest added to a team, a site created with default settings. That is why the activity reports look at the last 28 days and need repeating. If your company doesn't have SharePoint Advanced Management, the activity reports first require you to turn on data collection: the data is kept for 28 days and the first report is ready after about 24 hours, so it is best to switch it on early.

## What can an employee do without being an administrator?

An employee can't use these tools, but can avoid creating new problems. When you share a file, choose specific people rather than "Everyone in the organisation". Keep confidential documents in a site or folder with few members. If you see a document in a Copilot answer that you shouldn't be reading, tell your administrator straight away: Copilot showed you a wrong permission, not a fault of its own.

## Sources

- [Data, Privacy, and Security for Microsoft Copilot](https://learn.microsoft.com/en-us/copilot/plan/microsoft-365-copilot-privacy)
- [Restrict discovery of SharePoint sites and content](https://learn.microsoft.com/en-us/sharepoint/restricted-content-discovery)
- [Data access governance reports for SharePoint sites](https://learn.microsoft.com/en-us/sharepoint/data-access-governance-reports)

---

*Guide written with AI assistance and checked by me before publication.*
