Commands › SharePoint Online
Get-SPORestrictedAccessForSitesInsights
This cmdlet enables the administrator to check status of all active and available reports about insights on sites protected and access denials by restricted access control.
Quick start script
# Get-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
Get-SPORestrictedAccessForSitesInsights | Format-List
# 3. Export for evidence / drift tracking
Get-SPORestrictedAccessForSitesInsights | Export-Clixml .\SPORestrictedAccessForSitesInsights-$(Get-Date -Format yyyyMMdd).xml
Syntax
Get-SPORestrictedAccessForSitesInsights [-RACProtectedSites] [-ActionsBlockedByPolicy] [-ReportId <Guid>]
[-Action <ActionType>] [-InsightsSummary] [-FullDetails] [-Content <SPOActionsBlockedByRACPolicyInsightType>]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.