Commands › SharePoint Online
Set-SPOSiteRestrictedAppAccessControlList
Adds or removes application IDs in a site's Application Restrictions allow or deny list in one atomic update.
Quick start script
# Set-SPOSiteRestrictedAppAccessControlList — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOSiteRestrictedAppAccessControlList
$before | Format-List
# 3. Make the change (dry run first)
Set-SPOSiteRestrictedAppAccessControlList -Identity <String> -ListType <String> -WhatIf
Set-SPOSiteRestrictedAppAccessControlList -Identity <String> -ListType <String>
# 4. Verify and diff
$after = Get-SPOSiteRestrictedAppAccessControlList
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-SPOSiteRestrictedAppAccessControlList [-Identity] <String> -ListType <String> [-AddRestrictedAppIds <Guid[]>] [-RemoveRestrictedAppIds <Guid[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.