Get-PnPSiteCollectionAdmin

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Get-PnPSiteCollectionAdmin.md to change this file.

Returns the current site collection administrators of the site collection in the current context

Syntax

Get-PnPSiteCollectionAdmin
   [-Connection <PnPConnection>]
   [<CommonParameters>]

Description

This command will return all current site collection administrators of the site collection in the current context

Examples

EXAMPLE 1

Get-PnPSiteCollectionAdmin

This will return all the current site collection administrators of the site collection in the current context

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:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False