Grant-PnPHubSiteRights

Grant additional permissions to the permissions already in place to associate sites to Hub Sites for one or more specific users

Syntax

Grant-PnPHubSiteRights
     [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Grant-PnPHubSiteRights -Identity https://contoso.sharepoint.com/sites/hubsite -Principals "myuser@mydomain.com","myotheruser@mydomain.com" -Rights Join

This example shows how to grant rights to myuser and myotheruser to associate their sites with the provided Hub Site

------------------EXAMPLE 2------------------

Grant-PnPHubSiteRights -Identity https://contoso.sharepoint.com/sites/hubsite -Principals "myuser@mydomain.com" -Rights None

This example shows how to revoke rights from myuser to associate their sites with the provided Hub Site

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False