external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
Adds one or more users as site collection administrators to the site collection in the current context
Add-PnPSiteCollectionAdmin -Owners <List`1>
[-Connection <SPOnlineConnection>]
This command allows adding one to many users as site collection administrators to the site collection in the current context. It does not replace or remove exisitng site collection administrators.
PS:> Add-PnPSiteCollectionAdmin -Owners "[email protected]"
This will add [email protected] as an additional site collection owner to the site collection in the current context
PS:> Add-PnPSiteCollectionAdmin -Owners @("[email protected]", "[email protected]")
This will add [email protected] and [email protected] as additional site collection owners to the site collection in the current context
PS:> Get-PnPUser | ? Title -Like "*Doe" | Add-PnPSiteCollectionAdmin
This will add all users with their title ending with "Doe" as additional site collection owners to the site collection in the current context
Specifies owner(s) to add as site collection adminstrators. They will be added as additional site collection administrators to the site in the current context. Existing administrators will stay. Can be both users and groups.
Type: List`1
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: True
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False