Repository navigation
Update OfficeDocs-Sharepoint-PowerShell #1237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Aditi Srivastava (aditisrivastava07)
merged 43 commits into
MicrosoftDocs:main
from
nellymo:nellymo-draft-218028
Oct 14, 2026
+2,152
−1
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
2cde32c
Update 13 files in OfficeDocs-Sharepoint-PowerShell
nellymo 30c2edf
Fix href for Set-SPOSiteRestrictedAppAccessControlList
nellymo 79fb9e3
Change reviewer alias to 'neilh' in documentation
nellymo a3ca036
Change reviewer alias to 'neilh' in documentation
nellymo 1805001
Change reviewer alias to 'neilh' in documentation
nellymo bd98856
Change reviewer alias to 'neilh' in documentation
nellymo b1cbbd6
Change reviewer alias to 'neilh' in documentation
nellymo fcba143
Change reviewer alias in set-spositerestrictedappaccesscontrolmode.md
nellymo 2ab04db
Change reviewer alias to 'neilh' in documentation
nellymo 2884c8b
Fix TOC entries for SharePoint PowerShell commands
nellymo ce4acd8
Fix syntax formatting in documentation
nellymo 4de71c6
Fix syntax formatting in documentation
nellymo b537a8c
Fix syntax formatting in documentation
nellymo 41f4fe2
Fix syntax block in disable-spositerestrictedappaccesscontrol.md
nellymo 4872dff
Fix syntax formatting in disable-spotenantrestrictedappaccesscontrol.md
nellymo 07a4ffc
Fix syntax formatting in documentation
nellymo c4abbba
Fix formatting and enhance examples in documentation
nellymo 85abf5e
Update 12 files in OfficeDocs-Sharepoint-PowerShell
nellymo 56d3bd2
Update 5 files in OfficeDocs-Sharepoint-PowerShell
nellymo 2e0b90e
Update clear-spositerestrictedappaccesscontrollist.md
nellymo 445a3ec
Update 11 files in OfficeDocs-Sharepoint-PowerShell
nellymo 5520da8
Update 2 files in OfficeDocs-Sharepoint-PowerShell
nellymo 98bfd3f
Update 6 files in OfficeDocs-Sharepoint-PowerShell
nellymo bf6142e
Update EnableSPOSiteRestrictedAppAccessControl.md
nellymo 88b8593
Correct capitalization in file name
garycentric 1e8db39
Update 2 files in OfficeDocs-Sharepoint-PowerShell
nellymo 8e30ddf
Refactor Clear-SPOSiteRestrictedAppAccessControlList documentation
nellymo 0f11afa
Refactor Clear-SPOSiteRestrictedAppAccessControlPolicy.md
nellymo 10fbea2
Revise documentation for Clear-SPOTenantRestrictedAppAccessControlPolicy
nellymo 43c6423
Update documentation for Disable-SPOSiteRestrictedAppAccessControl
nellymo d9c5b7f
Update documentation for Disable-SPOTenantRestrictedAppAccessControl
nellymo b7236c6
Update Get-SPOSiteRestrictedAppAccessControl documentation
nellymo c922b1e
Revise documentation for Enable-SPOSiteRestrictedAppAccessControl
nellymo 16cb584
Update documentation for Enable-SPOTenantRestrictedAppAccessControl
nellymo ef3bc42
Revise description and update metadata for cmdlet
nellymo 3d6e39b
Fix formatting in Get-SPOTenantRestrictedAppAccessControl.md
nellymo 61cf51d
Revise Set-SPOSiteRestrictedAppAccessControlMode documentation
nellymo a862293
Update documentation for Set-SPOSiteRestrictedAppAccessControlList
nellymo 3704447
Revise documentation for Set-SPOTenantRestrictedAppAccessControlList
nellymo 1e4324e
Rename Get-SPOSiteRestrictedAppAccessControl to Set-SPOTenantRestrict…
nellymo 5b24fd6
Rename cmdlet to Get-SPOSiteRestrictedAppAccessControl
nellymo 7694356
Enhance documentation for Get-SPOSiteRestrictedAppAccessControl
nellymo b4efa3e
Address review feedback for Application Restrictions cmdlets
nellymo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,26 @@ | ||
| - name: Index | ||
| href: index.md | ||
| href: index.md | ||
| - name: Clear-SPOSiteRestrictedAppAccessControlList | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/clear-spositerestrictedappaccesscontrollist.md | ||
| - name: Clear-SPOSiteRestrictedAppAccessControlPolicy | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/clear-spositerestrictedappaccesscontrolpolicy.md | ||
| - name: Clear-SPOTenantRestrictedAppAccessControlPolicy | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/clear-spotenantrestrictedappaccesscontrolpolicy.md | ||
| - name: Disable-SPOSiteRestrictedAppAccessControl | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/disable-spositerestrictedappaccesscontrol.md | ||
| - name: Disable-SPOTenantRestrictedAppAccessControl | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/disable-spotenantrestrictedappaccesscontrol.md | ||
| - name: Enable-SPOSiteRestrictedAppAccessControl | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/enable-spositerestrictedappaccesscontrol.md | ||
| - name: Enable-SPOTenantRestrictedAppAccessControl | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/enable-spotenantrestrictedappaccesscontrol.md | ||
| - name: Get-SPOSiteRestrictedAppAccessControl | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/get-spositerestrictedappaccesscontrol.md | ||
| - name: Get-SPOTenantRestrictedAppAccessControl | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/get-spotenantrestrictedappaccesscontrol.md | ||
| - name: Set-SPOSiteRestrictedAppAccessControlList | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/set-spositerestrictedappaccesscontrollist.md | ||
| - name: Set-SPOSiteRestrictedAppAccessControlMode | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/set-spositerestrictedappaccesscontrolmode.md | ||
| - name: Set-SPOTenantRestrictedAppAccessControlList | ||
| href: sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/set-spotenantrestrictedappaccesscontrollist.md |
204 changes: 204 additions & 0 deletions
204
...oft.Online.SharePoint.PowerShell/Clear-SPOSiteRestrictedAppAccessControlList.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,204 @@ | ||
| --- | ||
| external help file: Microsoft.Online.SharePoint.PowerShell.dll-help.xml | ||
| Module Name: Microsoft.Online.SharePoint.PowerShell | ||
| online version: https://learn.microsoft.com/powershell/module/sharepoint-online/clear-spositerestrictedappaccesscontrollist | ||
| applicable: SharePoint Online | ||
| title: Clear-SPOSiteRestrictedAppAccessControlList | ||
| schema: 2.0.0 | ||
| ms.author: neilh | ||
| ms.reviewer: neilh | ||
| description: Clear-SPOSiteRestrictedAppAccessControlList removes all entries from a site's allow or deny list in SharePoint Online. Learn syntax, examples, and parameters. | ||
| ms.date: 10/13/2026 | ||
| ms.topic: reference | ||
| --- | ||
|
|
||
| # Clear-SPOSiteRestrictedAppAccessControlList | ||
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Clears a site's Application Restrictions allow or deny list while preserving the other list, active mode, and site enablement. | ||
|
|
||
| ## SYNTAX | ||
|
|
||
| ```powershell | ||
| Clear-SPOSiteRestrictedAppAccessControlList -Identity <String> -ListType <String> [-WhatIf] [-Confirm] [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ## DESCRIPTION | ||
|
|
||
| Use the `Clear-SPOSiteRestrictedAppAccessControlList` cmdlet to clear the allow list or deny list on a single site. Clearing one list preserves the other list, active mode, and site enablement. To remove the complete policy, use `Clear-SPOSiteRestrictedAppAccessControlPolicy`. | ||
|
|
||
| A site stores both lists, but only the list selected by the active mode participates in enforcement: | ||
|
|
||
| - **Allow** mode enforces the allow list. Listed applications pass the Application Restrictions check, and all other governed applications are denied by the site policy. | ||
| - **Deny** mode enforces the deny list. Listed applications are denied by the site policy, and all other governed applications pass the Application Restrictions check. | ||
|
|
||
| When the cleared list is the one the active mode enforces, the cmdlet emits a warning before confirmation. Clearing the active allow list causes the site policy to deny all governed third-party and agentic applications. Clearing the active deny list means the site policy no longer denies any governed applications. This warning describes only the Application Restrictions policy decision and never means that an application is granted access. Existing Microsoft Entra consent and SharePoint authorization still apply. The warning also states whether the change takes effect immediately or when enforcement is next enabled. | ||
|
|
||
| Clearing an inactive list doesn't change current enforcement, but it still supports `-WhatIf` and `-Confirm`, and it's audited. | ||
|
|
||
| Configuration and enablement are orthogonal. List changes never turn enforcement on, so clearing a list on a site that isn't enabled leaves the site disabled and stages the change for the next time enforcement is enabled with `Enable-SPOSiteRestrictedAppAccessControl`. This avoids the dangerous case where adding a single ID to an unconfigured site would immediately activate an allow list and block every other application. | ||
|
|
||
| The tenant switch gates all site enforcement. A site policy has no effect while the tenant switch is off, and the tenant deny list can't be overridden by a site allow list, so clearing a site deny list never restores access for an application that the tenant denies. | ||
|
|
||
| Application Restrictions adds a SharePoint authorization boundary for applications that already have Microsoft Entra consent and SharePoint permissions. It never grants permissions and it doesn't replace Entra consent. A request must pass both the existing permission model and Application Restrictions. | ||
|
|
||
| Site Application Restrictions administration is isolated from the general-purpose `Get-SPOSite` and `Set-SPOSite` cmdlets. Application Restrictions is fully decoupled from `SiteProperties`, so `Get-SPOSite` doesn't load site policy data and `Set-SPOSite` can't change it. Use the dedicated Application Restrictions cmdlets listed in [Related Links](#related-links). | ||
|
|
||
| For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell). | ||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### Example 1 | ||
|
|
||
| ```powershell | ||
| Clear-SPOSiteRestrictedAppAccessControlList -Identity "https://contoso.sharepoint.com/sites/Finance" -ListType DenyList | ||
| ``` | ||
|
|
||
| This example clears the deny list on the Finance site. It preserves the allow list, active mode, and site enablement. If `Deny` is the active mode, the cmdlet warns that the site policy no longer denies governed applications in that list. Existing Microsoft Entra consent and SharePoint authorization still apply. | ||
|
|
||
| ### Example 2 | ||
|
|
||
| ```powershell | ||
| Clear-SPOSiteRestrictedAppAccessControlList -Identity "e1b2c3d4-5678-4abc-9def-0123456789ab" -ListType AllowList -WhatIf | ||
| ``` | ||
|
|
||
| This example identifies the site by site ID and previews clearing the allow list without changing the policy. Every site Application Restrictions cmdlet accepts `-Identity` as either a site URL or a site ID. | ||
|
|
||
| ### Example 3 | ||
|
|
||
| ```powershell | ||
| $url = "https://contoso.sharepoint.com/sites/Finance" | ||
| Clear-SPOSiteRestrictedAppAccessControlList -Identity $url -ListType AllowList | ||
| Set-SPOSiteRestrictedAppAccessControlList -Identity $url -ListType AllowList -AddRestrictedAppIds "11111111-1111-1111-1111-111111111111" | ||
| ``` | ||
|
|
||
| This example rebuilds an allow list from scratch. Because list changes are configuration-only, neither command changes whether the site is enabled. | ||
|
|
||
| ### Example 4 | ||
|
|
||
| ```powershell | ||
| Clear-SPOSiteRestrictedAppAccessControlList -Identity "https://contoso.sharepoint.com/sites/Finance" -ListType DenyList -Confirm:$false | ||
| ``` | ||
|
|
||
| This example clears the deny list without an interactive confirmation prompt, for use in automation. Using `-Confirm:$false` doesn't bypass validation, authorization, auditing, or first-party protection. | ||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -Identity | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Specifies the site to change. Provide either the site URL or the site ID. | ||
|
|
||
| ```yaml | ||
| Type: System.String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -ListType | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Specifies which list to clear. Entry mutations must explicitly identify the target list. The valid values are: | ||
|
|
||
| - `AllowList` | ||
| - `DenyList` | ||
|
|
||
| ```yaml | ||
| Type: System.String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Accepted values: AllowList, DenyList | ||
|
|
||
| Required: True | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Confirm | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| 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. | ||
|
|
||
| ```yaml | ||
| Type: System.Management.Automation.SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: cf | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -WhatIf | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Shows what would happen if the cmdlet runs. The cmdlet isn't run. | ||
|
|
||
| ```yaml | ||
| Type: System.Management.Automation.SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: wi | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### CommonParameters | ||
|
|
||
| This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). | ||
|
|
||
| ## INPUTS | ||
|
|
||
| ### None | ||
|
|
||
| ## OUTPUTS | ||
|
|
||
| ### None | ||
|
|
||
| This cmdlet doesn't return an object. Use `Get-SPOSiteRestrictedAppAccessControl` to read the resulting policy. | ||
|
|
||
| ## NOTES | ||
|
|
||
| - Clearing one list preserves the other list, the active mode, and site enablement. | ||
| - Clearing the list that the active mode enforces changes the Application Restrictions policy decision. An empty active allow list causes the site policy to deny all governed third-party and agentic applications. An empty active deny list means the site policy denies none of them. Existing Microsoft Entra consent and SharePoint authorization still apply. The cmdlet warns before confirmation and states whether the change takes effect immediately or when enforcement is next enabled. | ||
| - Clearing an inactive list doesn't change current enforcement, but the operation still supports `-WhatIf` and `-Confirm` and is audited. | ||
| - List changes never turn enforcement on. Site enforcement is turned on only by `Enable-SPOSiteRestrictedAppAccessControl`. | ||
| - The tenant switch gates all site enforcement, so a site policy has no effect while the tenant switch is off. The tenant deny list can't be overridden by a site allow list. | ||
| - Application Restrictions never grants permissions. A request must still pass existing SharePoint authorization. | ||
| - This cmdlet supports `-WhatIf` and `-Confirm` with `ConfirmImpact.High`. `-Confirm:$false` is allowed for automation and doesn't bypass validation, authorization, auditing, or first-party protection. | ||
|
|
||
| ## RELATED LINKS | ||
|
|
||
| [Get-SPOSiteRestrictedAppAccessControl](Get-SPOSiteRestrictedAppAccessControl.md) | ||
|
|
||
| [Set-SPOSiteRestrictedAppAccessControlMode](Set-SPOSiteRestrictedAppAccessControlMode.md) | ||
|
|
||
| [Set-SPOSiteRestrictedAppAccessControlList](Set-SPOSiteRestrictedAppAccessControlList.md) | ||
|
|
||
| [Enable-SPOSiteRestrictedAppAccessControl](Enable-SPOSiteRestrictedAppAccessControl.md) | ||
|
|
||
| [Disable-SPOSiteRestrictedAppAccessControl](Disable-SPOSiteRestrictedAppAccessControl.md) | ||
|
|
||
| [Clear-SPOSiteRestrictedAppAccessControlPolicy](Clear-SPOSiteRestrictedAppAccessControlPolicy.md) | ||
|
|
||
| [Get-SPOTenantRestrictedAppAccessControl](Get-SPOTenantRestrictedAppAccessControl.md) | ||
|
|
||
| [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.