Skip to content

Commit e72a718

Browse files
committed
fix mail enabled status in new group
1 parent f77cd5a commit e72a718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/New-CIPPGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function New-CIPPGroup {
8585
'displayName' = $GroupObject.displayName
8686
'description' = $GroupObject.description
8787
'mailNickname' = $GroupObject.username
88-
'mailEnabled' = $false
88+
'mailEnabled' = ($NormalizedGroupType -in @('Security', 'M365'))
8989
'securityEnabled' = $true
9090
'isAssignableToRole' = ($NormalizedGroupType -eq 'AzureRole')
9191
}

0 commit comments

Comments
 (0)