You can easily change the name of an Office 365 Group or Team through the Office Admin Portal or the Teams Admin Center. If you change the group or Teams name, it won’t automatically change the ID or email (SMTP) address associated with that group. In order to change that, you’ll need to use Exchange Online Powershell.
Change Office 365 Group or Team Email Address in Admin Center
This article has been updated in January 2022 since Microsoft has now added the ability to change a Team email address in the Microsoft 365 Admin Center (Thank you for the comments below with the update).
- Go to the Microsoft 365 Admin Center
- Go to Teams & Groups on the left > Active Teams & Groups
- Search for and select the Teams group you want to edit
- Click Edit under Aliases
- To edit the primary email address, click the pencil icon next to the Primary Email Address and make the changes
- You can also add multiple aliases
- Click Save Changes
Once you edit the email address the old email becomes an alias which you can delete if you need to.
Previous Method using Exchange Online Powershell
- Connect to your Exchange Online Powershell using a Global Administrator account by following the steps outlined in: Office 365: Connect to Exchange Online Powershell
- Run the below commands to add required SMTP addresses as an alias:
Set-UnifiedGroup -Identity "Group Name" -EmailAddresses: @{Add ="GroupName@domain.com"}
Set-UnifiedGroup -Identity "Group Name" -EmailAddresses: @{Add ="GroupName@domain.onmicrosoft.com"}
- Promote alias as a primary SMTP address using this command:
Set-UnifiedGroup -Identity "Group Name" -PrimarySmtpAddress "GroupName@domain.com"
- If you no longer want to associate the old address with the group, you can remove it by running these commands:
Set-UnifiedGroup -Identity "Group Name" -EmailAddresses: @{Remove="OldGroupName@domain.onmicrosoft.com"}
Set-UnifiedGroup -Identity "Group Name" -EmailAddresses: @{Remove="OldGroupName@domain.com"}
In the above commands, you’ll want to replace:
- GroupName with your new group name
- domain.com with your primary SMTP email domain
- domain.onmicrosoft.com with your Office 365 domain
- OldGroupName with the old address you want to remove
It works.
Thank you.
OIcourse it works, it’s powershell. It’s the only thing that works.
Awesome Sauce! Thanks
I have created a team (ITONLY) and it auto created an email address (ITONLY5879@…) for the team address. I already have a distribution list called (ITONLY@…) but would like that to be the email address for the newly created team. Is there a way to use ITONLY@ as the email address for this team? I am thinking that I may have to delete the distributions list first then try your solution. Am I on the right path?
Yes Dennis, you’d need to remove the distribution list first, then rename the Group.
Great guide, worked perfectly :)
FYI, you can change the email address in the web interface now! I believe this was added recently.
Go to the Microsoft 365 Admin Center, go to Teams & groups on the left, search for and select the Teams group you want to edit. There is the option to edit the primary and alias email.
Once you edit the email address, the old email becomes an alias, and you can also delete that old alias too.
Thanks CH, that worked for me too – I successfully changed a group email address from the Microsoft 365 Admin Center, no PowerShell needed!
Thank you CH. I’ve updated the article with the new steps.
Does this work with the free version of teams? For example if we repurposed a personal Microsoft account from persona @ outlook . com to personb @ outlook . com, under the Microsoft account, it’s properly pwrsonb @ outlook . com. But when they log into teams, it still shows persona @ outlook . com and I see no place to fix this.
Personal accounts would be completely different than business accounts. Have you tried making the personb account the primary alias in the Microsoft account? This can take 24-48 hours to take effect across all services and you might need to logout of Teams and log back in.