How to synchronize the employeeid field with Azure AD Connect
Il y a des choses qui peuvent vous paraitre simple au premier abord et qui le sont, et d’autres qui s’avèrent compliquées sans que vous vous en doutiez.
C’est le cas de la synchronisation de l’attribut Employeeid avec Azure AD Connect. Eh oui, si vous pensiez juste ajouter ce champ dans la configuration de votre Azure AD connect pour renseigner cette information dans l’Azure AD vous vous trompez. La première chose que vous allez découvrir c’est que ce champ n’est pas disponible dans la sélection de base d’Azure AD Connect.
There are things that may seem simple at first glance that are simple and others that turn out to be complicated without your knowledge.
This is the case with the synchronization of the Employeeid attribute with Azure AD Connect. Yes, if you thought you could just add this field in your Azure AD connect configuration to fill in this information in Azure AD, you’re wrong.
The first thing you will discover is that this field is not available in the basic selection of Azure AD Connect.
Pourquoi ? Mystère. Par contre vous allez pouvoir l’ajouter si vous sélectionner l’option Directory extension attribute sync comme le montre l’image suivante
Why is this? It’s a mystery. But you can add it if you select the Directory extension attribute sync option as shown in the following image
En cliquant sur next vous allez pouvoir ajouter ce fameux champ / By clicking on next you will be able to add this famous field
Une fois la configuration faite, exécutez une synchronisation complète (initial) de votre annuaire. Et là vous vous apercevrez que cela ne change pas grand-chose . Le champs Employeeid dans l’Azure AD est toujours vide. Pourquoi ? Mystère. En regardant les règles de synchronisation on peut s’apercevoir qu’une règle en Outbound a été ajoutée.
Once the configuration is done, run a complete synchronization (initial) of your directory. And you will notice that it does not change much. The Employeeid field in Azure AD is still empty. Why is this? Mystery .
By looking at the synchronization rules you can see that an Outbound rule has been added.
Et ajoute la valeur de l’employee ID sauf .. quelle ne le fait pas. Le champ Employeeid reste vide alors que dans l’Active Directory la valeur figure bien dans l’attribut.
And adds the value of the employee ID except … which does not. The Employeeid field remains empty while in the Active Directory the value is in the attribute
La figure suivante illustre ce que l’on trouve dans Azure AD . ce n’est pas vraiment ce que l’on veut
The following figure illustrates what we find in Azure AD . it is not really what we want
J’ai donc modifié la règle pour spécifier le champ correctement comme le montre la figure suivante
So I modified the rule to specify the field correctly as shown in the following figure
puis relancer une synchronisation initiale avec la commande Start-ADSyncSyncCycle -PolicyType Initial en powershell directement sur le serveur Azure AD Connect.
Un petit café le temps que cela synchronise correctement…..
Et le résultat fonctionne
then re-launch an initial synchronization with the Start-ADSyncCycle -PolicyType Initial command in powershell directly on the Azure AD Connect server.
A little coffee while it synchronizes properly…..
And the result works