Commands › SharePoint Online

Start-SPORestrictedAccessForSitesInsights

SharePoint Online Microsoft.Online.SharePoint.PowerShell Start-*

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)

ParameterTypeRequiredWhat it controls
-ActionsBlockedByPolicy SwitchParameter It is an optional parameter, and it specifies the type of report generation to be triggered.
-Force SwitchParameter It is an optional parameter which is used to bypass confirmation prompts and execute the command without interruptions.
-RACProtectedSites SwitchParameter It is an optional parameter, and it specifies the type of report generation to be triggered.
-PolicyName String It is an optional parameter, used together with `-ActionsBlockedByPolicy`, that scopes the report to a single policy.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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