Override the distribution group naming policy in Exchange Online
Article
The group naming policy for distribution groups is applied only to groups created by users and to groups created by administrators using the new Exchange admin center (new EAC). When you or other administrators use the classic Exchange admin center (classic EAC) to create distribution groups, the group naming policy is ignored and not applied to the group name.
However, if you use Exchange Online PowerShell to create or rename a distribution group, the group naming policy is applied to groups created by administrators unless you use the IgnoreNamingPolicy parameter to override the group naming policy.
What do you need to know before you begin?
Estimated time to complete: 2 minutes.
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Recipients" entry in the Feature permissions in Exchange Online topic.
For example, if the group naming policy for your organization is DG_<Group Name>_Users, run the following command to create a group named All Administrators.
New-DistributionGroup -Name "All Administrators" -IgnoreNamingPolicy
When Microsoft Exchange creates this group, it uses All Administrators for both the Name and DisplayName parameters.
Use Exchange Online PowerShell to override the group naming policy when you rename a group
To override the group naming policy when you rename an existing group with Exchange Online PowerShell, run the following command.
Set-DistributionGroup -Identity <Old Group Name> -Name <New Group Name> -DisplayName <New Group Name> -IgnoreNamingPolicy
For example, let's say you created a group naming policy late one night and the next morning you realized you misspelled the text string in the prefix. The next morning, you see that a new group has already been created with the misspelled prefix. You can fix the group naming policy in the EAC, but you have to use Exchange Online PowerShell to rename the group with the misspelled name. Run the following command.
Be sure to include the DisplayName parameter when you rename a group. If you don't, the old name is still displayed in the shared address book on the To:, Cc:, and From: lines in email messages.
How do you know this worked?
To verify that you've successfully created or renamed a distribution group that ignores the group naming policy, run the following commands.
This module provides instruction on how to create groups for distributing email to multiple users within Exchange Online. It also explains how to create groups to support collaboration in SharePoint Online.
Use the Exchange admin center (EAC) or Exchange Online PowerShell to create a new distribution group in your Exchange Online organization or to mail-enable an existing group.
A group naming policy lets you standardize and manage the names of distribution groups created by users in your organization. You can add specific prefix and suffix to the name of a distribution group when it's created. And you can also block specific words from being used. This helps you minimize the use of inappropriate words in group names.
A mail-enabled security group can be used to distribute messages and to grant access permissions to resources in Active Directory. For more information, see Recipients.