If you’ve ever tried to create a mail-enabled security group directly from the Entra Admin Center and couldn’t find the option — you’re not alone. This guide explains what mail-enabled security groups are, why you can’t create them in Entra, and the correct ways to create them using Microsoft 365 tools and Exchange PowerShell. Let’s break it down step by step.
A Mail-Enabled Security Group is a special type of group that combines:
In simple terms: It’s a security group that also has an email address.
This is one of the most common points of confusion. In the Entra Admin Center, the group types available are typically:
You will not see an option for MailEnabledSecurity.
Why?
Because:
In short: Entra handles identity, Exchange handles mail.
Since mail-enabled security groups require Exchange mail properties, they must be created through Exchange-aware tools.
There are three supported methods:
Let’s go through each one.
Steps:
Once created, the group will:
This is the most reliable GUI method.
Steps:
This ensures Exchange provisions all required mail attributes properly.
PowerShell is the preferred method for:
Use the following script exactly as shown:
$Owners = @('owner1@domain.com', 'owner2@domain.com')
$Members = @('member1@domain.com', 'member2@domain.com')
New-DistributionGroup -Name "HR Department" -Alias "hrdepartment" -Type "Security"
-ManagedBy $Owners -Members $Members
What this does:
This is the cleanest way to create a mail-enabled security group.
If you're deploying multiple groups (departments, regions, projects), bulk creation saves massive time.
Use the script below exactly as provided:
# Import the CSV file
$groups = Import-Csv -Path "MailEnabledSecurityGroups.csv"
# Create each mail-enabled security group
foreach ($group in $groups) {
try {
New-DistributionGroup -Name $group.Name `
-Alias $group.Alias `
-PrimarySmtpAddress "$($group.Alias)@7xh7fj.onmicrosoft.com" `
-Type Security
Write-Host "✅ Created: $($group.Name)" -ForegroundColor Green
} catch {
Write-Host "❌ Failed: $($group.Name)" -ForegroundColor Red
Write-Host $_.Exception.Message
}
}
Sample CSV Structure (MailEnabledSecurityGroups.csv)
Name,Alias
HR Department,hrdepartment
Finance Team,financeteam
IT Support,itsupport
What this script does:
This is ideal for tenant migrations, mergers, or standardized deployment.
Mail-enabled security groups are incredibly powerful because they bridge:
However, they cannot be created directly in Entra because:
If you're creating:
Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.
Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.
© Your Site Name. All Rights Reserved. Design by HTML Codex