SharePoint agents and Copilot
AI and Copilot

Restrict SharePoint site access for applications and agents with Application Restrictions - SharePoint in Microsoft 365

In brief

The page now notes that Application Restrictions cmdlets are rolling out and may not yet be available in every tenant. All listed PowerShell links were updated to the Microsoft.Online.SharePoint.PowerShell module path.

What SharePoint admins need to know

Administrators should account for possible cmdlet availability differences and use the updated links when accessing the cmdlet documentation.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Restrict SharePoint site access for applications and agents with Application Restrictions - SharePoint in Microsoft 365 | Microsoft Learn

Note

The Application Restrictions cmdlets are currently rolling out and might not yet be available for your tenant.

Application Restrictions helps prevent oversharing to applications by designating which apps and agents can access a SharePoint site and its content. Applications not permitted by the policy can't access the site or its content, even when they hold Microsoft Entra consent and SharePoint permissions.

Application Restrictions adds an authorization boundary for applications that already have 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.

Cmdlet Purpose
Get-SPOTenantRestrictedAppAccessControlGet-SPOTenantRestrictedAppAccessControl Return the tenant switch and deny list
Set-SPOTenantRestrictedAppAccessControlListSet-SPOTenantRestrictedAppAccessControlList Add or remove applications on the tenant deny list
Enable-SPOTenantRestrictedAppAccessControlEnable-SPOTenantRestrictedAppAccessControl Turn on enforcement organization-wide
Disable-SPOTenantRestrictedAppAccessControlDisable-SPOTenantRestrictedAppAccessControl Turn off enforcement, preserving the deny list
Clear-SPOTenantRestrictedAppAccessControlPolicyClear-SPOTenantRestrictedAppAccessControlPolicy Turn off enforcement and clear the deny list

Site

Cmdlet Purpose
Get-SPOSiteRestrictedAppAccessControlGet-SPOSiteRestrictedAppAccessControl Return a site's enablement, mode, and both lists
Set-SPOSiteRestrictedAppAccessControlModeSet-SPOSiteRestrictedAppAccessControlMode Set the active mode to Allow or Deny
Set-SPOSiteRestrictedAppAccessControlListSet-SPOSiteRestrictedAppAccessControlList Add or remove applications on a site list
Enable-SPOSiteRestrictedAppAccessControlEnable-SPOSiteRestrictedAppAccessControl Turn on enforcement for the site
Disable-SPOSiteRestrictedAppAccessControlDisable-SPOSiteRestrictedAppAccessControl Turn off enforcement, preserving mode and lists
Clear-SPOSiteRestrictedAppAccessControlListClear-SPOSiteRestrictedAppAccessControlList Empty one list
Clear-SPOSiteRestrictedAppAccessControlPolicyClear-SPOSiteRestrictedAppAccessControlPolicy Remove the site policy entirely

Application Restrictions is managed only through these dedicated cmdlets. Get-SPOTenant and Get-SPOSite don't return the policy, and Set-SPOTenant and Set-SPOSite can't change it.