Renamed AD user’s UPN not syncing with Office 365 via DirSync

Renamed AD users UPN not syncing with Office 365 via DirSync

I recently renamed an existing users account and forced DirSync to push the changes to the cloud. Since the user was already Synced I had to add the old users email as a proxyAddress in the attribute editor etc. Everything synced up pretty well, but the problem was that the E-mail field in AD UPN didn’t match the 365 username. The account worked, but had mismatches with the send from field and signing into Outlook.

Renamed AD users UPN not syncing with Office 365 via DirSync

Renamed AD user’s UPN not syncing with Office 365 via DirSync

Microsoft had a handy fix for me, but its still kind of odd it didn’t do it automatically, but at least it was easy fix. It was Scenario 2 in my case, something do do with renaming users with a 365 license it seems. Basically connect to Azure AD using PowerShell then…

connect-msolservice (authenticate)

Finally run the following Windows PowerShell cmdlet:

Set-MsolUserPrincipalName -UserPrincipalName [CurrentUPN] -NewUserPrincipalName [NewUPN]
Now everything matched up, I did a repair on the Outlook profile and all was good.
Microsoft Link

One response to “Renamed AD user’s UPN not syncing with Office 365 via DirSync

Comments are closed.