Get-PnPMicrosoft365GroupOwner
SYNOPSIS
Required Permissions
- Microsoft Graph API : at least Group.Read.All
- Microsoft Graph API : Directory.Read.All
Gets owners of a particular Microsoft 365 Group
SYNTAX
Get-PnPMicrosoft365GroupOwner -Identity <Microsoft365GroupPipeBind>
DESCRIPTION
Allows to retrieve owners of Microsoft 365 Group.
EXAMPLES
EXAMPLE 1
Get-PnPMicrosoft365GroupOwner -Identity $groupId
Retrieves all the owners of a specific Microsoft 365 Group based on its ID
EXAMPLE 2
Get-PnPMicrosoft365GroupOwner -Identity $group
Retrieves all the owners of a specific Microsoft 365 Group based on the group's object instance
PARAMETERS
-Identity
The Identity of the Microsoft 365 Group.
Type: Microsoft365GroupPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False