Grant-PnPSiteDesignRights

Grants the specified principals rights to use the site design.

Syntax

Grant-PnPSiteDesignRights
     -Identity <TenantSiteDesignPipeBind>
                              -Principals <String[]>
                              [-Rights <TenantSiteDesignPrincipalRights>]
                              [-Connection <SPOnlineConnection>]

Examples

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

Grant-PnPSiteDesignRights -Identity 5c73382d-9643-4aa0-9160-d0cba35e40fd -Principals "myuser@mydomain.com","myotheruser@mydomain.com"

Grants the specified principals View rights on the site design specified

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

Get-PnPSiteDesign -Title "MySiteDesign" -SiteScriptIds 438548fd-60dd-42cf-b843-2db506c8e259 -WebTemplate TeamSite | Grant-PnPSiteDesignRights -Principals "myuser@mydomain.com","myotheruser@mydomain.com"

Grants the specified principals View rights on the site design specified

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
-Identity

The site design to use.

Type:TenantSiteDesignPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Principals

One or more principals to grant rights to.

Type:String[]
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Rights

The rights to set. Defaults to 'View'

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