Table of Contents

Set-PnPEntraIDGroup

SYNOPSIS

Required Permissions

  • Microsoft Graph API: Group.ReadWrite.All

Sets the properties of a specific Entra ID group.

SYNTAX

Set-PnPEntraIDGroup -Identity <EntraIDGroupPipeBind> [-DisplayName <String>] [-Description <String>]
 [-Owners <String[]>] [-Members <String[]>] [-SecurityEnabled] [-MailEnabled] 
 [-HideFromAddressLists <Boolean>] [-HideFromOutlookClients <Boolean>] 
 

DESCRIPTION

This cmdlet sets the properties of a specific Entra ID group. This can be a security, distribution or Microsoft 365 group.

EXAMPLES

EXAMPLE 1

Set-PnPEntraIDGroup -Identity $group -DisplayName "My DisplayName"

Sets the display name of the group where $group is a Group entity.

EXAMPLE 2

Set-PnPEntraIDGroup -Identity $groupId -Description "My Description" -DisplayName "My DisplayName"

Sets the display name and description of a group based upon its ID.

EXAMPLE 3

Set-PnPEntraIDGroup -Identity $group -Owners demo@contoso.com

Sets demo@contoso.com as the owner of the group.

PARAMETERS

-SecurityEnabled

Sets the Entra ID group to be allowed to be used for setting permissions.

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MailEnabled

Sets the Entra ID group to be allowed to be used for receiving e-mail.

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

The description of the group to set.

Type: String
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisplayName

The display name of the group to set.

Type: String
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HideFromAddressLists

Controls whether the group is hidden or shown in the Global Address List (GAL).

Type: Boolean
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HideFromOutlookClients

Controls whether the group shows in the Outlook left-hand navigation.

Type: Boolean
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-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

-Members

The array UPN values of members to set to the group. Note: Will replace members.

Type: String[]
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Owners

The array UPN values of owners to set to the group. Note: Will replace owners.

Type: String[]
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices Microsoft Graph documentation