Update group email in Microsoft Teams

Urie Guerrier
Urie Guerrier used Ask the Experts™
How do update a group mailbox for an established group in Microsoft teams? Preferably without using PowerShell but will do it if necessary. Any help would be appreciated. Thanks!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sr. Architect | Consulting
Can do in Powershell ONLY

1. Connect to Exchange Online via Power shell using Global Administrator Credentials and run the below commends. First two command run separately.

Set-ExecutionPolicy Unrestricted

Start-service winrm
Connect-MsolService -Credential $UserCredential
Import-module MSOnline
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session


2.  Run the below command to add required SMTP address as an alias.

  Set-UnifiedGroup -Identity "X" -EmailAddresses: @{Add ="Y"}

here X is the Display Name of Office 365 group and Y is the required Email ID.

Set-UnifiedGroup -Identity "Groupname" -EmailAddresses: @{Add ="NewEmail@domain.com"}


3. Promote alias as a primary SMTP address,

Set-UnifiedGroup -Identity "Groupname" -PrimarySmtpAddress "NewEmail@domain.com"


4. If not required, you can remove first ID using below command.

Set-UnifiedGroup -Identity "GroupName" -EmailAddresses: @{Remove="OLDADDRESS@domain.com"}

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial