Create custom sync rule to sync DistinguishedName to Azure

Chau Le 96 Reputation points
2022-04-11T03:30:07.237+00:00

I need to get DN value sync'd to azure somehow somehow... sync'd to some attribute, I really don't care which attribute. There are so many articles saying that you must create a CUSTOM SYNC RULE to do this... but NONE SHOWS YOU HOW TO MAKE THE CUSTOM RULE.

Can someone just show me how to make a custom sync rule to sync the Distinguishedname to maybe ExtensionAttribute15 or something?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,462 questions
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 27,886 Reputation points Microsoft Employee
    2022-04-11T09:23:02.997+00:00

    @Chau Le

    Thank you for reaching out to us. As per my understanding you want to sync On premise DN attribute to Azure ( by passing the value via ExtensionAttributeXX).

    I have verified this issue in my lab and I see we do sync DN value to Azure and the same can be seen from Graph Explorer, below are the screenshots for your reference.

    191863-image.png

    191864-image.png

    However I am sharing the steps of creating custom inbound sync rule as well on how to pass the DN information to ExtensionAttributeXX ( 1 to 15 ), you can use any attribute which ever is not in use.

    Note: No need to create Outbound rule here at this point, As out to AAD - User ExchangeOnline rule has ExtensionAttributeXX defined.

    Post creating the sync rule, perform initial sync to trigger the changes "Start-ADSyncSyncCycle -PolicyType Initial"

    191854-image.png

    191830-image.png

    Let me know if you have any questions or if you need any help in configuring the same, happy to assist you offline.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.


1 additional answer

Sort by: Most helpful
  1. T. Kujala 8,701 Reputation points
    2022-04-11T05:02:46.477+00:00

    Hi @Chau Le ,

    Here is the guide for customizing a synchronization rule.

    Hopefully it helps.