r/sharepoint • u/LoveSharePoint • 4h ago
SharePoint Online [Guide] Restricting M365 Copilot Oversharing in SharePoint Online using Restricted Site Access (RSA) Policies
Hey everyone,
With Microsoft 365 Copilot adoption ramping up, one of the biggest governance challenges tenant admins face is oversharing. If legacy SharePoint sites were historically shared with "Everyone except external users", Copilot will index and surface those confidential documents (salaries, HR notes, acquisition data) to general staff in chat responses.
While trimming permissions on individual libraries takes weeks, Microsoft introduced **Restricted Site Access (RSA)** policies to immediately lock down citations at the container level.
### How RSA Works
RSA restricts access to the site collection strictly to members of a designated Entra ID Security Group—even if individual files or subfolders had broader permissions. Copilot citations from that site are instantly restricted to group members.
### Quick PowerShell Implementation:
Here is the baseline script to apply RSA using the SharePoint Online PowerShell module:
```powershell
Import-Module Microsoft.Online.SharePoint.PowerShell -ErrorAction Stop
Connect-SPOService -Url "https://yourtenant-admin.sharepoint.com"
# Enforce Restricted Site Access (RSA) for Copilot Governance
$SiteUrl = "https://yourtenant.sharepoint.com/sites/ConfidentialFinance"
$AllowedGroupId = "YOUR-ENTRA-SECURITY-GROUP-OBJECT-ID"
Set-SPOSite -Identity $SiteUrl `
-RestrictedAccessControl $true `
-RestrictedAccessControlGroups $AllowedGroupId
Write-Host "RSA successfully enforced! Copilot will only cite content for members of group $AllowedGroupId." -ForegroundColor Green
```
### Key Considerations:
**Propagation Time:** Changes typically take 1 to 2 hours for Copilot's semantic search index to reflect the boundary.
**Readiness:** Unmanaged/BYOD users on Conditional Access Limited Access sessions are also gated by this rule.
I wrote a detailed enterprise masterclass breaking down the architecture, automated audit script, and edge cases here:
https://lovesharepointblog.blogspot.com/2026/11/microsoft-365-copilot-governance.html
Hope this helps anyone dealing with Copilot security audits! Let me know how your teams are approaching Copilot data governance.