Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Revoke-SPOHubSiteRights
Revokes rights for specified principals to a hub.
Syntax
Default (Default)
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 "nestorw@contoso.onmicrosoft.com"
This example shows how to revoke rights so that Nestor can no longer join sites to the Marketing hub site.
Parameters
-Identity
Applicable: SharePoint Online
URL of the hub site.
Parameter properties
| Type: | Microsoft.Online.SharePoint.PowerShell.SpoHubSitePipeBind |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | HubSite |
Parameter sets
-Principals
Applicable: SharePoint Online
One or more principals to revoke the permissions for.
Parameter properties
| Type: | System.String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Microsoft.Online.SharePoint.PowerShell.SpoHubSitePipeBind
Outputs
System.Object
Feedback
Was this page helpful?
