Commands › SharePoint Online

Get-SPORestrictedAccessForSitesInsights

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

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)

ParameterTypeRequiredWhat it controls
-Action GetSPORestrictedAccessForSitesInsightsReport+ActionType It is an optional parameter, and it specifies whether to view or download a specific report.
-ActionsBlockedByPolicy SwitchParameter It is an optional parameter, and it specifies the type of report to be viewed or downloaded.
-Content SPOActionsBlockedByRACPolicyInsightType It is an optional parameter, and it specifies the subtype of the report to be viewed or downloaded.
-FullDetails SwitchParameter It is an optional parameter and allows to download a CSV file containing up to 1 million records.
-InsightsSummary SwitchParameter It is an optional parameter, and it specifies the subtype of the report to be viewed or downloaded.
-RACProtectedSites SwitchParameter It is an optional parameter, and it specifies the type of report to be viewed or downloaded.
-ReportId Guid It is an optional parameter, and it specifies the unique Id of the report to be viewed or downloaded.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.