Clear-PnPAzureADGroupMember

Tip

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

Required Permissions

  • Microsoft Graph API : One of Directory.ReadWrite.All, Group.ReadWrite.All, GroupMember.ReadWrite.All

Removes all current members from a particular Azure Active Directory group. This can be a security, distribution or Microsoft 365 group.

Syntax

Clear-PnPAzureADGroupMember
     -Identity <AzureADGroupPipeBind>
     [<CommonParameters>]

Examples

EXAMPLE 1

Clear-PnPAzureADGroupMember -Identity "Project Team"

Removes all the current members from the Azure Active Directory group named "Project Team"

Parameters

-Identity

The Identity of the Azure Active Directory group to remove all members from

Type:AzureADGroupPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False