KB – mobile phone number not in sync Azure AD Connect

This is a knowledgebase item. Hope it helps you out someday.

The issue

Some users reported that the mobile phone number in Azure Active Directory / Office 365 was different from the number in on-prem Active Directory. Even though these users were synced with Azure AD Connect, the mobile phone attribute was no longer in sync.

Cause

After some investigation, it seemed that the affected accounts were previously edited with the Set-MsolUser cmdlet from the MSOnline PowerShell module. To make sure this was the cause, I reproduced the issue in my lab:

  1. Created a new user in Active Directory.
  2. Added the mobile phone attribute in Active Directory.
  3. The number got synced to Azure Active Directory.
  4. Ran the Set-MsolUser -ObjectId <ObjectID> -MobilePhone ‘<Mobile phone number’ cmdlet
  5. In Active Directory, I changed the mobile phone number again to another value.

After step 4, the number no longer gets updated.

By the way, this was the outcome of the Twitter poll on this subject:

Solution

Unfortunately, this is currently not something that you can fix by yourself. After I raised the issue with Microsoft support, the issue was resolved by Microsoft engineers. They ran a script to reset the DirSyncOverWrite attributes. After this was done, the attributes were updated from Active Directory again.

There seems to be a new flag feature on its way where you as a tenant admin will be given a choice to disable the ‘DirSyncOverrides’, making Active Directory the true source of authority of the value. Until then, raise a ticket with Microsoft support to get this fixed.

Good to know

The MSOnline module lets you change the mobile phone attribute on synced objects. The Azure AD module will not let you change that property on synced objects.

avatar
Jan Bakkerhttps://janbakker.tech/
I am a cloud consultant based in the Netherlands. I spend my days helping organizations make the most out of their Microsoft (cloud) products. With over 10 years of experience, I can quickly oversee problems and come up with solid solutions. I am experienced in Microsoft 365, so Windows 10, Enterprise Mobility & Security and Office 365. Basically everything up and around the Modern Workplace.

Related Articles

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay Connected

6,065FollowersFollow
5,933FollowersFollow

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Latest Articles