Grant-SPOSiteDesignRights
用于将权限应用于一组用户或安全组,从而有效地确定 UX 中网站设计的可见性范围。 它们一开始是公共的,但在设置权限后,只有具有权限的组或用户可以访问网站设计。
语法
Default (默认值)
Grant-SPOSiteDesignRights
[-Identity] <SPOSiteDesignPipeBind>
-Principals <String[]>
-Rights <SPOSiteDesignPrincipalRights>
[<CommonParameters>]
说明
用于将权限应用于一组用户或安全组,从而有效地确定 UX 中网站设计的可见性范围。 它们一开始是公共的,但在设置权限后,只有具有权限的组或用户可以访问网站设计。
示例
示例 1
此示例演示如何将网站设计的查看权限授予 Nestor (虚构的 Contoso 网站) 的用户。
Grant-SPOSiteDesignRights `
-Identity 44252d09-62c4-4913-9eb0-a2a8b8d7f863 `
-Principals "nestorw@contoso.onmicrosoft.com" `
-Rights View
参数
-Identity
适用:SharePoint Online
用于获取范围信息的网站设计的 ID。
参数属性
| 类型: | Microsoft.Online.SharePoint.PowerShell.SPOSiteDesignPipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(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
始终设置为值 视图。 任何具有查看权限的用户或组都可以查看和使用站点设计。
参数属性
| 类型: | Microsoft.Online.SharePoint.PowerShell.SPOSiteDesignPrincipalRights |
| 默认值: | None |
| 接受的值: | View |
| 支持通配符: | 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。