One Prompt, the Whole Payroll: Cleaning Up SharePoint Before Copilot Finds It

TL;DR
- Copilot only returns content a user already has permission to open, but in most tenants those permissions reach far wider than anyone intended.
- A public SharePoint site carrying the Everyone except external users permission lets every internal account surface its files through Copilot, even users who are not site members.
- Claude and ChatGPT follow the same Microsoft 365 permissions once connected, so SharePoint cleanup matters whichever AI tool a client picks.
- Restricted Content Discovery in SharePoint Advanced Management hides a sensitive site from Copilot while the slower permission cleanup happens.
- Start by blocking new sprawl, then retire inactive sites, then fix public sites, broad permissions, and direct grants, in that order.
Most SharePoint tenants are a fridge full of leftovers. Old sites, one-off shares, and "temporary" access pile up for years, and nobody throws anything out. AI assistants are the ones who open the fridge and find all of it.
On November 25, 2026, Nick Ross (Microsoft MVP and CloudCapsule co-founder) ran a session on finding and fixing SharePoint oversharing before Copilot or any other AI assistant goes live. The full replay is at the top of this page. Below is the recap, with the demo, the cleanup order we follow, and the questions MSPs asked during the session.
A quick poll at the start set the scene. About two in three attendees said they are rolling out Copilot, and roughly a quarter said they use a different AI tool instead. Both groups have the same problem. Copilot, Claude, and ChatGPT all answer from what a user can already open in Microsoft 365, so the permissions underneath decide what each one can surface.
How did a user with no site access pull up payroll?
The demo started with a regular accountant, Michael, who had just been given a Copilot license. He was not a member of the Finance site and had no shared files from it. Nick typed one prompt: show the approved salary range for a named executive's role.
Copilot answered with the pay grade and linked the source file, the full company payroll workbook (clip (opens in new tab)). A follow-up prompt asking for every file with payroll information returned matches from the Finance site, the Operations site, and another site, none of which Michael belonged to (clip (opens in new tab)). The only setup the demo needed was the Copilot license. Nick has seen the same thing happen at a real client the day Copilot was turned on.
Two settings explained it:
- The Finance site was public. Its Microsoft 365 group was open to the whole organization.
- The site carried "Everyone except external users." This legacy permission sits under the site's classic permission settings, where few admins look. It grants every internal account access to the site's content.
Michael's own group memberships told none of this story. Entra showed him in a single unrelated group. That is why checking a user's groups is not enough to predict what Copilot will show them.
Oversharing builds up through normal decisions
Nobody in the demo tenant did anything malicious (clip (opens in new tab)). Nick walked through a typical timeline:
- A Finance site holds the salary workbook, shared with the Finance team.
- A year later, department leads need to upload budget proposals. Instead of sharing one folder, someone adds the Department Leads group to the whole site.
- Over the next few years, people join and leave that group. New leads inherit Finance access, and nobody removes the old ones.
- A department lead asks Copilot about next year's budget and gets the salary workbook too.
Add direct shares to individual files and folders (which break permission inheritance) and you get a tenant where nobody can say who has access to what.
Sensitive data also drifts out of the places it belongs. In every engagement Nick has run, a DLP policy in simulation mode has found personal information sitting in someone's OneDrive that the business owner did not know about (clip (opens in new tab)). At one client, an employee surfaced termination letters before they had gone out (clip (opens in new tab)). That employee reported it. The next one might not.
Two ways to audit SharePoint access
SharePoint Advanced Management reports
SharePoint Advanced Management (SAM) comes with Microsoft 365 Copilot licensing, so tenants with Copilot already have it. Tenants without Copilot can add it per user. In the SharePoint admin center it shows up with a "Pro" tag.
- Oversharing assessment. Start an assessment to get two views. Site lifecycle covers inactive sites (based on when content was last modified or read) and sites missing owners. Oversharing covers broken permission inheritance, org-wide site permissions, and organization and Anyone sharing links. Anyone links work for whoever has the URL, inside or outside the company.
- Data access governance reports. Under Reports, the site permissions report breaks down each site by file count, items with unique permissions, permissioned users, guests, and whether the site is shared with Everyone except external users. It covers OneDrive too, which is where you find users with full access to someone else's OneDrive.
- Permission report for users. This works the other way around and lists every site and file a chosen user can reach. You have to add users one at a time, so it suits spot checks better than a full audit.
What the native reports do not show is how each person got their access. A user count does not tell you whether someone is a site member, part of a nested group, or holds a direct grant on one folder.
A PowerShell export that shows how access was granted
To fill that gap, Nick wrote a PnP PowerShell script that exports every site's permissions per user, with the permission level and how it was granted. Filter the export in Excel for direct permissions with Full Control, for example, and you find the legacy one-off assignments that should move into groups. We are sharing the script with attendees.
The cleanup order we use
A tenant can have thousands of sites. Nick's last engagement had 3,200 (clip (opens in new tab)). Nobody fixes every site and file retroactively, so the goal is to contain the most sensitive data first, then work down the list in an order where each step makes the next one smaller.
1. Stop new sprawl
Cleanup does not hold if anyone can still create a site. Restrict Microsoft 365 group creation to an approved group of people, which also controls who can create Teams and group-connected sites. There is no toggle for this in the admin center, so it takes a short PowerShell script. Volume matters here too, because AI agents are about to generate more files than people ever did.
2. Shrink what you have to secure
- Inventory inactive sites from the SAM assessment or the data access governance export.
- Make them read-only or archive them after reviewing the list with the client (clip (opens in new tab)). Read-only keeps the site viewable, blocks edits and downloads, and is easy to reverse from the admin center. Archiving uses Microsoft 365 Archive, which is billed per GB, so most SMB clients are better served by the backup tool they already pay for.
- Set an inactive site policy under Policies, then Site lifecycle management. You choose the scope, exclude sites that should never be touched, and set the inactivity window (Nick starts at six months). The policy checks site files and connected resources like the Teams channel and group mailbox, emails site owners or admins with a template you can customize, and can then make the site read-only or archive it. Run it in simulation mode first. We covered this policy in more depth in our inactive site cleanup guide.
3. Clean up existing access
- Review public sites first. The data access governance report shows each site's privacy setting. Anything holding sensitive data, like that Finance site, should be private. Change it in the site's Settings in the SharePoint admin center.
- Remove broad permissions. Everyone except external users can be removed from the site's Membership tab, under Site members. There is no bulk option yet, so it is one site at a time.
- Make sure every site has owners. A site ownership policy can require a minimum number of owners, so someone is accountable for what the site holds and who belongs in it.
- Find direct permissions. Use the PowerShell export to find individual grants. For each one, decide whether the person still needs access, and if they do, move them into a group.
4. Reduce exposure while cleanup continues
- Restrict your most sensitive sites with Restricted Content Discovery or Restricted Site Access (more on both below). Finance, HR, and executive sites are the usual first picks (clip (opens in new tab)).
- Harden sharing defaults. Check what the default link type is and who sites can share with. Microsoft's newer sharing links ask the user to name a person instead of defaulting to an Anyone link, whatever the tenant setting (clip (opens in new tab)). Our guide to SharePoint hero links covers what changes.
- Clean up guest access. For a Copilot rollout this is second priority behind internal oversharing, but guests still need a lifecycle.
- Schedule site access reviews. A site attestation policy asks owners to confirm on a set schedule (quarterly, twice a year, or yearly) that a site's content and members are still right, with the same read-only or archive actions if they say it is no longer needed.
This is a lot of labor across a large tenant. Ordering it this way means each step reduces the work in the next, and the highest-risk data gets protected first.
Restricted Content Discovery: a stopgap you can turn on today
Restricted Content Discovery is the fastest protection in SAM. In the SharePoint admin center, open Active sites, select the site, and turn it on under Settings. It removes the site from Copilot and organization-wide search results without changing anyone's permissions.
In the demo, Nick turned it on for the Finance site. About 20 minutes later, the same payroll prompt still returned files from the Operations site, which had been left alone, but nothing from Finance. Microsoft warns that it takes longer to apply on sites with many files.
Restricted Site Access goes further. It limits the whole site, every file and folder, to the groups you name. That catches direct grants buried in subfolders that you cannot see from the site's membership list.
What MSPs asked during the session
Do other AI tools, like Claude, respect Restricted Content Discovery?
Restricted Content Discovery works by blocking the site from Microsoft Search indexing, so tools that search through Microsoft's APIs should be blocked as well. Nick had not tested it directly with Claude as of November 25, 2026, so verify it in your own tenant before relying on it. (clip (opens in new tab))
Does Restricted Content Discovery also block users who want to use AI on those sites?
Yes. It applies to everyone, including the people who legitimately work on the site. That is why it suits the most sensitive sites rather than every site. (clip (opens in new tab))
If a site has Everyone except external users but is set to private, can Copilot still index it?
Nick's answer in the session was that the exposure in the demo came from the combination of a public site and the Everyone except external users permission, which is why public sites are the first thing to review. Our recommendation is to do both steps on any sensitive site: set it to private and remove the broad permission. (clip (opens in new tab))
What is the difference between Members and Site Members?
Members belong to the site's Microsoft 365 group, the modern model with owners and members. Site Members is the classic SharePoint permission group, which is where legacy permissions like Everyone except external users still live. On a fully modern site, owners and members should be all you need. (clip (opens in new tab))
A site has 50+ libraries, each with its own users. SharePoint groups or Entra ID groups?
Use Entra ID groups where you can. They already drive device management and onboarding, and dynamic membership based on user attributes keeps data access in step as people join, move departments, or leave. Sites with heavy classic architecture may still need SharePoint groups during the transition. (clip (opens in new tab))
Restricted Site Access, or just set permissions directly?
Either works when you can see every grant. Restricted Site Access helps when inheritance is broken, because direct access to a folder inside the site does not appear in the membership list. Turning it on cuts everyone except the groups you name. (clip (opens in new tab))
Does Restricted Site Access stop members from sharing files outside the organization?
No. External sharing is a separate site-level setting. For a site like Finance, set sharing to only people in your organization. (clip (opens in new tab))
Site owners can see everything. Should SharePoint admins be site owners?
Not unless they need the data. Owners have full access to the site's content, so an admin who manages SharePoint does not automatically need to own every site. Review admin roles and ownership the same way you review member access. (clip (opens in new tab))
Can one SharePoint Advanced Management license cover the whole tenant?
One license turns the features on, but using them across users who are not licensed puts the tenant out of compliance with Microsoft's licensing terms, which can mean fines after an audit. Nick's guidance is that a single license can get you through initial discovery, but once you set up ongoing policies, license every user. (clip (opens in new tab))
How we automate this in CloudCapsule
At the end of the session, Nick showed the SharePoint permissions report in CloudCapsule, which is part of our AI readiness work. You pick the sites to scan, and it walks every document library, folder, and file looking for unique permissions, not just the site-level settings. Results include a health score per site, inactivity, default sharing settings, every Anyone link, and the specific public sites carrying Everyone except external users. It needs no PowerShell or SharePoint Advanced Management license.
The report is in beta as of November 2026. Existing partners can ask us to turn it on.
For more detail on the audit itself, read Copilot Grants No New Access. It Just Makes Years of SharePoint Sprawl Searchable. and our DLP guide for HR data.
Frequently asked questions
Does Microsoft 365 Copilot give users access to files they couldn't open before?
No. Copilot searches only what the signed-in user can already open. The risk is that years of group nesting, broad permissions like Everyone except external users, and one-off shares give most users access to far more than they know about. Copilot makes that access easy to find with a plain-language prompt.
What is SharePoint Advanced Management and do I already have it?
SharePoint Advanced Management (SAM) adds oversharing assessments, data access governance reports, Restricted Content Discovery, Restricted Site Access, and site lifecycle policies to the SharePoint admin center. It comes with Microsoft 365 Copilot licensing. Tenants without Copilot can buy it as a per-user add-on.
What is the fastest way to protect a sensitive SharePoint site before a Copilot rollout?
Turn on Restricted Content Discovery for that site in the SharePoint admin center (Active sites, select the site, Settings). It removes the site from Copilot and organization-wide search results without changing anyone's permissions. Expect a delay before it applies on sites with many files.
Should inactive SharePoint sites be archived or made read-only?
For most small and midsize clients, read-only is the practical default. It keeps the site available, stops edits and downloads, and is easy to reverse from the admin center. Archiving uses Microsoft 365 Archive, which is billed per GB, so many MSPs rely on their existing backup tools instead.
See every overshared site and link without running a script
CloudCapsule's SharePoint permissions report scans every site, library, folder, and file for unique permissions, Anyone links, inactive sites, and Everyone except external users on public sites. It is in beta, and we can turn it on for your account and walk through it with you.
Book a walkthroughWritten by
CloudCapsule


