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.
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
Just wrote a blog about this, there is a feature that controls whether changes to an AD user’s UPN are synced to O365. Seems like older tenants that setup syncing prior to 2015 have this disabled by default, newer tenants do not. Blog post which includes how to enable the feature:
http://msjunkies.com/2016/08/22/upn-changes-not-syncing-to-office-365/