Search code examples
powershellazure-active-directoryoffice365microsoft365

AzureAD/Microsoft365: I'd like to change our users UPN from [email protected] to [email protected]


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.


Solution

  • 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.