0

I guess it could be done easily via Powershell and the AzureAD module however I've got couple of doubts and it seems I can't find the proper documentation to help me to dispel them.

  • When I change the UPN in AzureAD will it be automatically changed and propagated to Microsoft 365 services especially Exchange Online? Or should I then change UPN in EXO too?
  • When I change the UPN in AzureAD the PrimaryEmailAddress should change too, is there an automation to keep the former address as alias (I mean, SMTP and smtp entries in the proxyaddress field)

Thanks in advance for your help.

Attoy
  • 5
  • 1
  • 1
  • 3

1 Answers1

0

EXO is using Azure AD as the user directory. This means that changes made for a user in Azure AD will automatically be reflected in EXO (where relevant, of course).

If you want to ensure the previous email address as an alias I suggest you set this in EXO as part of your scripting.

MMThornberg
  • 344
  • 1
  • 5
  • Thanks for your clarification @MMThornberg. Just a quick additional question, since I'm unable to add an alias if the email address is already set so I'd change the UPN and then add the "former" email address as a new alias. I'm going to run it in a single script however do you think there is a possibility that users lose emails? – Attoy Nov 20 '20 at 12:40
  • Correct, you should add the alias after making the change ;-) regarding the email, you are only changing the naming reference doing this, so as long as you do not remove either the user or the EXO license emails are intact – MMThornberg Nov 20 '20 at 12:54
  • Thank you very much @MMThornberg! – Attoy Nov 20 '20 at 16:03