Commands › SharePoint Online

Revoke-SPOHubSiteRights

SharePoint Online Microsoft.Online.SharePoint.PowerShell Revoke-*

Revokes rights for specified principals to a hub.

Quick start script

# Revoke-SPOHubSiteRights — 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
Revoke-SPOHubSiteRights -Identity <SpoHubSitePipeBind> -Principals <String[]> | Format-List

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

Syntax

Revoke-SPOHubSiteRights [-Identity] <SpoHubSitePipeBind> -Principals <String[]> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity SpoHubSitePipeBind yes URL of the hub site.
-Principals String[] yes One or more principals to revoke the permissions for.

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