Copilot in SharePoint opt-out ended: check which sites are still open

Published: 6 min readMicrosoft 365 Copilot

This week I asked Copilot, signed in as a normal user on my demo tenant, how to connect to the company VPN. It said it couldn’t find a company VPN guide, although the guide sits in the IT Service Desk knowledge base and the same user can open it. The reason was Restricted Content Discovery: three of my demo sites had it on, and I had to check each one to find out.

Key takeaways

  • The Set-SPOTenant Copilot opt-out (KnowledgeAgentScope) stopped applying on 1 November 2026. Site AI settings and Restricted Content Discovery are what control Copilot now.
  • Check a site in SharePoint admin center > Sites > Active sites > site > Settings > Restrict content discovery, or with Get-SPOSite -Identity.
  • Site AI settings only hide the Copilot button from visitors. Restricted Content Discovery removes Copilot from the site but doesn’t change permissions.
On this page

What replaced the opt-out

Microsoft kept the old KnowledgeAgentScope, KnowledgeAgentSelectedSitesList and KnowledgeAgentSelectedSitesListOperation settings working only until 1 November 2026. The December What’s new in Copilot in SharePoint post confirms they were retired in early November. I covered the deadline in what changed when the opt-outs ended. From now on there are two controls, as listed on Get started with Copilot in SharePoint:

ControlWho sets itWhat it does
Site AI settingsSite ownerHides the Copilot button on site pages from visitors only. Owners and members still see it.
Restricted Content DiscoverySharePoint adminRemoves Copilot in SharePoint, the AI actions menu and Create pages with AI from the site, and keeps its content out of org-wide search and Copilot answers. Permissions don’t change.

Restricted Content Discovery is included with Microsoft 365 Copilot licences (SharePoint Advanced Management features in Copilot licenses), so you don’t need a separate SharePoint Advanced Management licence for it.

1 – Check Restricted Content Discovery in SharePoint admin center

  1. Open Active sites

    Open the SharePoint admin center and select Sites > Active sites.

  2. Open the site panel

    Search for the site and select its name. The details panel opens.

  3. Open the Settings tab

    Select the Settings tab.

  4. Check Restrict content discovery

    Look at Restrict content discovery (it has a PRO badge). On means the site is kept out of org-wide search and Copilot.

SharePoint admin center site settings showing Restrict content discovery turned on

On my demo tenant, MST Intranet, MST IT Service Desk and MST Finance were On. MST Human Resources and the other MST sites were Off. Microsoft Learn calls the same setting Restrict content from Microsoft Copilot on one page, so don’t be surprised if the label in your tenant reads differently.

2 – What users see on a restricted site

I checked this as Tim Devis, a normal user with a Copilot licence who can read the IT Service Desk site. The site header shows a Restricted tag, and the Copilot button is gone from the site.

Restricted tag on a SharePoint site with Restricted Content Discovery on

Search inside the site still works. Searching VPN in the site returned the Network and VPN folder and the VPN client in the Software Library.

SharePoint site search still returning results on a restricted site

Copilot chat is a different story. Asked how to connect to the company VPN, Copilot answered: “I couldn’t locate an official company VPN setup guide.” Then it gave generic steps.

Microsoft 365 Copilot unable to find content from a restricted SharePoint site

The same user asked about the new Hybrid Working Policy on MST Human Resources, which isn’t restricted, and got a full summary with the three office days and the anchor day.

Copilot answering from a SharePoint site that is not restricted

So if users tell you “Copilot can’t find our guides”, check this setting before you check permissions.

3 – Hide the Copilot button from visitors with Site AI settings

For a site where you only want visitors to stop seeing the Copilot button, a site owner can use Site AI settings. Tim is in the MST Human Resources Visitors group, so he could see the button before the change.

Copilot button visible to a site visitor in SharePoint
  1. Open the site as an owner and select Settings (gear) > Site AI.
  2. Under Access to Copilot, turn off Show Copilot button to site visitors.
  3. Select Save.
SharePoint Site AI settings with Show Copilot button to site visitors turned off

The same panel also has Main agent (which agent opens from the agent icon on the global header) and Advanced autofill columns, which shares Copilot Credits with the site.

Note: it isn’t instant either. I saved the change at 18:12 PKT and Tim still saw the Copilot button half an hour later, even after a reload. I’ll add the final delay here once it goes away. As an admin and owner I still see the button, which is expected.

4 – Report every site with PowerShell

Checking sites one by one in the admin center gets slow. This function reads the setting for each site you pipe to it. It needs the SharePoint Online Management Shell (Microsoft.Online.SharePoint.PowerShell) and the SharePoint Administrator role.

function Get-MttRestrictedDiscoverySite {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [Alias('Url')]
        [string]$SiteUrl
    )
    process {
        try {
            # -Identity is needed: some properties aren't populated when -Limit or -Filter is used
            $site = Get-SPOSite -Identity $SiteUrl -ErrorAction Stop
            [PSCustomObject]@{
                Url                        = $site.Url
                Title                      = $site.Title
                Template                   = $site.Template
                RestrictedContentDiscovery = [bool]$site.RestrictContentOrgWideSearch
                Status                     = 'OK'
            }
        }
        catch {
            [PSCustomObject]@{
                Url = $SiteUrl; Title = $null; Template = $null
                RestrictedContentDiscovery = $null
                Status = "Error: $($_.Exception.Message)"
            }
        }
    }
}

The function calls Get-SPOSite -Identity once per site, so it’s slow on a big tenant. For a tenant-wide list, Microsoft also has a built-in report: run Start-SPORestrictedContentDiscoverabilityReport, check it with Get-SPORestrictedContentDiscoverabilityReport, then download it with -Action Download -ReportId and the report ID (Restrict discovery of SharePoint sites and content).

Issue I hit

Restricted Content Discovery isn’t instant. Microsoft says a site with more than 500,000 items can take over a week to process. On a site with a 40 GB library it took about two days for me, as I wrote in the October post on keeping Copilot off a site. If you plan to restrict a few sites, start with the biggest ones and tell the site owners first, because their users will notice that Copilot stops answering from that content. For a quick list of blocked sites from the old controls, see three ways to find which SharePoint sites have Copilot blocked.

Try it yourself

Connect-SPOService -Url "https://mstalk-admin.sharepoint.com"   # Replace with your own
. .\Get-MttRestrictedDiscoverySite.ps1
Get-SPOSite -Limit All -Filter { Url -like "mstalk.sharepoint.com/sites/MST-" } |
    Select-Object -ExpandProperty Url |
    Get-MttRestrictedDiscoverySite |
    Export-Csv .\RestrictedDiscoverySites.csv -NoTypeInformation
  • Permissions: SharePoint Administrator
  • Output columns: Url, Title, Template, RestrictedContentDiscovery, Status
  • Level: site
Share:
Adnan Amin

Adnan Amin

Adnan Amin is a Microsoft MVP for Microsoft 365 (since 2015) and an independent Microsoft 365 consultant. He writes practical guides and PowerShell scripts for SharePoint, OneDrive, Teams and Copilot admins.

More posts by Adnan Amin

Leave a Reply

Your email address will not be published. Required fields are marked *