Revoke-SPOHubSiteRights
Revokes rights for specified principals to a hub.
Syntax
Revoke-SPOHubSiteRights
[-Identity] <SpoHubSitePipeBind>
-Principals <string[]>
[<CommonParameters>]
Description
Revokes rights for specified principals to the given hub site. The specified principals will no longer be able to associate sites with the hub. To find which principals have access to a hub site, use the Get-SPOHubSite cmdlet.
Note
If the hub site doesn't exist, this cmdlet returns a "File not found" error.
Examples
Example 1
Revoke-SPOHubSiteRights https://contoso.sharepoint.com/sites/Marketing `
-Principals "[email protected]"
This example shows how to revoke rights so that Nestor can no longer join sites to the Marketing hub site.
Parameters
-Identity
URL of the hub site.
Type: | SpoSitePipeBind |
Aliases: | HubSite |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Principals
One or more principals to revoke the permissions for.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |