Commands › SharePoint Online

Clear-SPOTenantRestrictedAppAccessControlPolicy

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

Turns off the tenant Application Restrictions enforcement switch and clears the tenant-wide deny list.

Quick start script

# Clear-SPOTenantRestrictedAppAccessControlPolicy — 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-SPOTenantRestrictedAppAccessControlPolicy | Format-List

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

Syntax

Clear-SPOTenantRestrictedAppAccessControlPolicy [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-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. Suppressing the prompt doesn't...
-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.