Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.32 KB

Clear-PnPMicrosoft365GroupMember.md

File metadata and controls

58 lines (40 loc) · 1.32 KB
Module Name schema applicable online version external help file title
PnP.PowerShell
2.0.0
SharePoint Online
PnP.PowerShell.dll-Help.xml
Clear-PnPMicrosoft365GroupMember

Clear-PnPMicrosoft365GroupMember

SYNOPSIS

Required Permissions

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

Removes all current members from a particular Microsoft 365 Group

SYNTAX

Clear-PnPMicrosoft365GroupMember -Identity <Microsoft365GroupPipeBind> 

DESCRIPTION

Allows to remove all current members from a specified Microsoft 365 Group.

EXAMPLES

EXAMPLE 1

Clear-PnPMicrosoft365GroupMember -Identity "Project Team"

Removes all the current members from the Microsoft 365 Group named "Project Team"

PARAMETERS

-Identity

The Identity of the Microsoft 365 Group to remove all members from

Type: Microsoft365GroupPipeBind
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

RELATED LINKS

Microsoft 365 Patterns and Practices Microsoft Graph documentation