Commands › SharePoint Online
Start-SPORestrictedAccessForSitesInsights
This cmdlet starts the generation of a new restricted access control insights report based on data from the previous 28 days.
Quick start script
# Start-SPORestrictedAccessForSitesInsights — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Start-SPORestrictedAccessForSitesInsights | Format-List
# 3. Export for evidence / drift tracking
Start-SPORestrictedAccessForSitesInsights | Export-Clixml .\SPORestrictedAccessForSitesInsights-$(Get-Date -Format yyyyMMdd).xml
Syntax
Start-SPORestrictedAccessForSitesInsights [-RACProtectedSites] [-ActionsBlockedByPolicy] [-Force]
[-PolicyName <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.