Search Results for

    Show / Hide Table of Contents

    Remove-PnPAzureADGroupMember

    SYNOPSIS

    Required Permissions

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

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

    SYNTAX

    Remove-PnPAzureADGroupMember -Identity <AzureADGroupPipeBind> -Users <String[]> 
    

    DESCRIPTION

    Allows to remove members from Azure Active Directory group.

    EXAMPLES

    EXAMPLE 1

    Remove-PnPAzureADGroupMember -Identity "Project Team" -Users "john@contoso.onmicrosoft.com","jane@contoso.onmicrosoft.com"
    

    Removes the provided two users as members from the Azure Active Directory group named "Project Team"

    PARAMETERS

    -Identity

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

    Type: AzureADGroupPipeBind
    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 members from the Azure Active Directory 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

    Back to top Generated by DocFX spacer