Skip to content

spo hubsite rights revoke

Revokes rights to join sites to the specified hub site for one or more principals

Usage

spo hubsite rights revoke [options]

Options

Option Description
--help output usage information
-u, --url <url> The URL of the hub site to revoke rights on
-p, --principals <principals> Comma-separated list of principals to revoke join rights. Principals can be users or mail-enabled security groups in the form of alias or alias@<domain name>.com
--confirm Don't prompt for confirming revoking rights
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

To use this command you have to have permissions to access the tenant admin site.

Remarks

Attention

This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.

Examples

Revoke rights to join sites to the hub site with URL https://contoso.sharepoint.com/sites/sales from user with alias PattiF. Will prompt for confirmation before revoking the rights

spo hubsite rights revoke --url https://contoso.sharepoint.com/sites/sales --principals PattiF

Revoke rights to join sites to the hub site with URL https://contoso.sharepoint.com/sites/sales from user with aliases PattiF and AdeleV without prompting for confirmation

spo hubsite rights revoke --url https://contoso.sharepoint.com/sites/sales --principals PattiF,AdeleV --confirm

More information