spo hubsite rights grant¶
Grants permissions to join the hub site for one or more principals
Usage¶
m365 spo hubsite rights grant [options]
Options¶
-u, --url <url>
- The URL of the hub site to grant rights on
-p, --principals <principals>
- Comma-separated list of principals to grant join rights. Principals can be users or mail-enabled security groups in the form of
alias
oralias@<domain name>.com
-r, --rights <rights>
- Rights to grant to principals. Available values
Join
-h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text
. Defaulttext
--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¶
Grant user with alias PattiF permission to join sites to the hub site with URL https://contoso.sharepoint.com/sites/sales
m365 spo hubsite rights grant --url https://contoso.sharepoint.com/sites/sales --principals PattiF --rights Join
Grant users with aliases PattiF and AdeleV permission to join sites to the hub site with URL https://contoso.sharepoint.com/sites/sales
m365 spo hubsite rights grant --url https://contoso.sharepoint.com/sites/sales --principals "PattiF,AdeleV" --rights Join
Grant user with email PattiF@contoso.com permission to join sites to the hub site with URL https://contoso.sharepoint.com/sites/sales
m365 spo hubsite rights grant --url https://contoso.sharepoint.com/sites/sales --principals PattiF@contoso.com --rights Join
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