spo hubsite rights revoke¶
Revokes rights to join sites to the specified hub site for one or more principals
Usage¶
m365 spo hubsite rights revoke [options]
Options¶
-u, --hubSiteUrl <hubSiteUrl>
- 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
oralias@<domain name>.com
--confirm
- Don't prompt for confirming revoking rights
-h, --help [help]
- Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Remarks¶
Important
To use this command you must be a Global or SharePoint administrator.
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
m365 spo hubsite rights revoke --hubSiteUrl 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
m365 spo hubsite rights revoke --hubSiteUrl https://contoso.sharepoint.com/sites/sales --principals "PattiF,AdeleV" --confirm
Response¶
The command won't return a response on success.
More information¶
- SharePoint hub sites new in Microsoft 365: https://techcommunity.microsoft.com/t5/SharePoint-Blog/SharePoint-hub-sites-new-in-Office-365/ba-p/109547