Grant-SPOHubSiteRights
授與許可權給使用者或擁有郵件功能的安全組,使其網站與中樞網站產生關聯。
語法
Default (預設值)
Grant-SPOHubSiteRights
[-Identity] <SpoHubSitePipeBind>
-Principals <String[]>
-Rights <SPOHubSiteUserRightsClient>
[<CommonParameters>]
Description
將許可權套用至一組用戶或擁有郵件功能的安全組。 使用此 Cmdlet 來界定誰可以在使用 SharePoint 使用者介面時,將其網站與中樞網站建立關聯的範圍。 根據預設,中樞網站是公用的。 設定許可權之後,只有您指定的群組或使用者可以將其網站與中樞網站產生關聯。
若要檢視哪些使用者或群組具有網站的許可權,請使用 Get-SPOHubSite Cmdlet。
範例
範例 1
Grant-SPOHubSiteRights https://contoso.sharepoint.com/sites/Marketing
-Principals nestorw@contoso.onmicrosoft.com
-Rights Join
此範例示範如何將許可權授與 Nestor (虛構 Contoso 網站) 的使用者,以將網站與行銷中樞網站建立關聯。
參數
-Identity
適用:SharePoint Online
中樞網站的 URL。
參數屬性
| 類型: | Microsoft.Online.SharePoint.PowerShell.SpoHubSitePipeBind |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | HubSite |
參數集
(All)
| Position: | 0 |
| 必要: | True |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Principals
適用:SharePoint Online
要為其新增許可權的一或多個主體。
參數屬性
| 類型: | System.String[] |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Rights
適用:SharePoint Online
一律設定為 [ 聯結] 值。 任何具有 聯 結許可權的使用者或群組都可以檢視和加入中樞網站。
參數屬性
| 類型: | String |
| 預設值: | None |
| 接受的值: | Join |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。