Company News

Changing the primary email address of an Office Group in 365

February 7, 2017

What

Renaming an Office 365 Group is simple if all you want to change is its display name. However, if you want to free up the email address it used (in our case, Office 365 Groups are neat and all, but the mailbox functionality is extremely limited – you can’t move messages, archive them, categorize them … truly almost completely useless).

So What

Again, renaming the Group is easy in the Admin Web Pages of Office 365. But if you need to rename the email address/alias it uses, you’ll need some PowerShell and hit up:

  •  The Primary Address (primarySMTPAddress)
  • The Email Aliases it uses (emailaddresses)

Now What

I’m not going to go into all the detail of how to connect and authenticate to Exchange Online as there is lots of stuff out there, I’m just going to point out what you’ll want to be changing and checking…

 

To Check Where The Email Alias (Proxy) is right now…

Let’s assume for this exercise that beers@company.com was pointed to an Outlook Group and you decided that using a group wasn’t a fit (such as the example above) and instead that you wanted to reclaim that alias for a Shared Mailbox (in our case, we couldn’t just delete the old group as it had stuff we wanted to keep in it).

Get-Recipient | where {$_.EmailAddresses -match “beers@company.com”} | fL Name, RecipientType,emailaddresses

To Change the Group (called “Our Beers”) Primary Address to “WasBeers@company.com”

Set-UnifiedGroup -Identity “Our Beers” -PrimarySmtpAddress “wasbeers@company.com”

To Change the Group (called “Our Beers”) Alias to “WasBeers@company.com”

Set-UnifiedGroup -Identity “Our Beers” -alias “wasbeers@company.com”

To Remove “Beers@company.com” from the Group as a proxy/alias

set-unifiedgroup “Our Beers” -emailaddresses @{remove=”beers@company.com”}

3 Responses

  1. Bryan Antepara says:

    What about changing the domain names for ALL of the groups at the same time?

  2. Matthew Prentice says:

    The proxy address still exists in at least one more place and it appears Microsoft does not provide a way to delete it. If you use the Azure AD v2 PowerShell module, run Get-AzureAdGroup to see the list of groups. Then run the cmdlet again with the -ObjectID for the specific group and pipe to “fl proxyaddresses”. The alias will still be listed.

    The Set-AzureAdGroup cmdlet does not allow modifying ProxyAddresses and so far Microsoft has not figured out a way to delete the address.

    We are trying to remove a vanity domain from the tenant that has Power BI so we can add it to a new tenant. We are not willing to delete the O365 Groups as they may adversely affect the Power BI workspaces and reporting. We can’t delete the domain from the tenant until we remove the aliases from the O365 Groups.

  3. Thank you. This post saved my sanity, trying to change a Group email address in an emergency too late one evening. Much appreciated, MVP.

Leave a Reply

Sean Wallbridge

Sean Wallbridge-square-150x150

Beer Me!

Subscribe via Email

Categories

Powered by...

itgroove Corporate Profile
Connect With Us