Remove-PnPMicrosoft365GroupOwner
SYNOPSIS
Required Permissions
- Microsoft Graph API : One of Directory.ReadWrite.All, Group.ReadWrite.All
Removes owners from a particular Microsoft 365 Group
SYNTAX
Remove-PnPMicrosoft365GroupOwner -Identity <Microsoft365GroupPipeBind> -Users <String[]>
DESCRIPTION
Allows to remove owners from a specified Microsoft 365 Group.
EXAMPLES
EXAMPLE 1
Remove-PnPMicrosoft365GroupOwner -Identity "Project Team" -Users "john@contoso.onmicrosoft.com","jane@contoso.onmicrosoft.com"
Removes the provided two users as owners from the Microsoft 365 Group named "Project Team"
PARAMETERS
-Identity
The Identity of the Microsoft 365 Group to remove owners from
Type: Microsoft365GroupPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Users
The UPN(s) of the user(s) to remove as owners from the Microsoft 365 Group
Type: String[]
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
RELATED LINKS
Microsoft 365 Patterns and Practices Microsoft Graph documentation