A Mail Enabled Security Group is a hybrid Microsoft 365 group type that combines:
A Mail Enabled Security Group can be used to assign permissions to resources AND receive emails like a distribution list. Unlike standard Security Groups (which are not mail-enabled) or Distribution Groups (which cannot assign permissions), Mail Enabled Security Groups provide both capabilities in one object.
They are created and managed primarily through Exchange Online.
Try the M365Corner Microsoft 365 Reporting Tool â your DIY pack with 20+ out-of-the-box M365 reports for Users, Groups, and Teams.
Mail Enabled Security Groups are useful when you need both access control and email communication for the same set of users.
Common Use Cases
Instead of managing:
You manage one single group.
Mail Enabled Security Groups are created and managed using Exchange Online PowerShell.
Step 1: Install Exchange Online PowerShell Module
If not already installed:
Install-Module ExchangeOnlineManagement -Scope CurrentUser
If already installed:
Update-Module ExchangeOnlineManagement
Step 2: Connect to Exchange Online
Connect-ExchangeOnline
You will be prompted to sign in.
To create Mail Enabled Security Groups, you must have one of the following roles:
Without proper permissions, the New-DistributionGroup cmdlet will fail.
After creation, Mail Enabled Security Groups can be used for:
â Assigning Permissions
Example:
â Sending Emails
Send email to: hrdepartment@domain.com
All members will receive the message.
Managing Members
Add a member:
Add-DistributionGroupMember -Identity "HR Department" -Member user@domain.com
Remove a member:
Remove-DistributionGroupMember -Identity "HR Department" -Member user@domain.com
View group details:
Get-DistributionGroup "HR Department"
This example creates a Mail Enabled Security Group and assigns owners and members at creation time.
$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:
Bulk creation is ideal when onboarding multiple departments or restructuring.
Sample CSV Structure (MailEnabledSecurityGroups.csv)
Name,Alias
HR Department,hrdepartment
Finance Team,financeteam
IT Support,itsupport
PowerShell Script
# 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
}
}
This table increases your chances of getting featured snippets.
| Feature | Security Group | Distribution Group | Mail Enabled Security Group | Microsoft 365 Group |
|---|---|---|---|---|
| Used for Permissions | â Yes | â No | â Yes | â Yes |
| Can Receive Emails | â No | â Yes | â Yes | â Yes |
| Has Shared Mailbox | â No | â No | â No | â Yes |
| Has Teams Integration | â No | â No | â No | â Yes |
| Managed via Exchange | â No | â Yes | â Yes | â No |
| Best For | Access Control | Email Communication | Access + Email | Collaboration |
Mail Enabled Security Groups are a powerful hybrid group type in Microsoft 365 that:
They are ideal for departments, project teams, and functional units that require both permission control and centralized communication.
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.
© Created and Maintained by LEARNIT WELL SOLUTIONS. All Rights Reserved.