Commands › SharePoint Online

Clear-SPOSiteRestrictedAppAccessControlList

SharePoint Online Microsoft.Online.SharePoint.PowerShell Clear-*

Clears a site's Application Restrictions allow or deny list while preserving the other list, active mode, and site enablement.

Quick start script

# Clear-SPOSiteRestrictedAppAccessControlList — 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
Clear-SPOSiteRestrictedAppAccessControlList -Identity <String> -ListType <String> | Format-List

# 3. Export for evidence / drift tracking
Clear-SPOSiteRestrictedAppAccessControlList | Export-Clixml .\SPOSiteRestrictedAppAccessControlList-$(Get-Date -Format yyyyMMdd).xml

Syntax

Clear-SPOSiteRestrictedAppAccessControlList -Identity <String> -ListType <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity String yes Specifies the site to change. Provide either the site URL or the site ID.
-ListType String yes Specifies which list to clear. Entry mutations must explicitly identify the target list. The valid values are:
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet. This cmdlet uses `ConfirmImpact.High`, so it prompts by default. Use `-Confirm:$false` to suppress the prompt in automation.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet isn't run.

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