Get-PnPEntraIDGroupOwner
SYNOPSIS
Required Permissions
- Microsoft Graph API : One of Group.Read.All, Group.ReadWrite.All, User.Read.All, User.ReadWrite.All
Gets owners of a particular Entra ID group. This can be a security, distribution or Microsoft 365 group.
SYNTAX
Get-PnPEntraIDGroupOwner -Identity <EntraIDGroupPipeBind> [-Connection <PnPConnection>]
DESCRIPTION
Allows to list owners from a given Entra ID group. This can be a security, distribution or Microsoft 365 group.
EXAMPLES
EXAMPLE 1
Get-PnPEntraIDGroupOwner -Identity $groupId
Retrieves all the owners of a specific Entra ID group based on its ID.
EXAMPLE 2
Get-PnPEntraIDGroupOwner -Identity $group
Retrieves all the owners of a specific Entra ID group based on the group's object instance.
PARAMETERS
-Identity
The identity of the Entra ID group.
Type: EntraIDGroupPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-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
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False