Synchro AD

L’intranet VisiaTeam se synchronise avec l’Active Directory toutes les nuits. L’annuaire de l’intranet est donc mis à jour avec les organisations, BU, utilisateurs, etc. de l’annuaire AD.

Le script de synchronisation se trouve à cet emplacement (à contextualiser selon l’environnement):

.\VDocPlatform\custom\ldapsynchro\dc-local-visiativ.xml

La synchronisation pour les utilisateurs est groupée par organisation, une OU (Organization Unit) dans l’AD

Exemple: OU=BU VISIATIV

<!-- Visiativ -->
<organization 
    basedn="OU=BU VISIATIV,OU=GROUPE VISIATIV,OU=Employés,OU=RESSOURCES VISIATIV,DC=local,DC=visiativ,DC=com"
    
    ldapFilter="(objectclass=organizationalUnit)"
    searchSubLevels="true" 
    createOrganization="false"
    directoryParentUri="Groupe/Visiativ"
    createSubOrganizations="false"
    matchTree="false" >
    
    <mapping source="ou" target="Label" type="String" alternateKey="true"/>
                        
    <users ldapFilter="(objectClass=person)">
        <mapping source="sAMAccountName" target="Login" type="String" mandatory="true" alternateKey="true"/>
        <mapping source="givenname" target="FirstName" type="String" mandatory="true" />
        <mapping source="sn" target="LastName" type="String" mandatory="true" />
        <mapping source="mail" target="Email" type="String" mandatory="false" />
        <mapping source="mobile" target="MobilePhoneNumber" type="String" mandatory="false" />
        <mapping source="telephoneNumber" target="PhoneNumber" type="String" mandatory="false" />
        <mapping source="employeeID" target="nickName" type="String" mandatory="false" />
        <mapping source="employeeNumber" target="employeeNumber" type="String" mandatory="false" />
        <mapping source="title" target="userFunction" type="String" mandatory="false" />
        <mapping source="msExchExtensionAttribute16" target="str_birthday" type="ExtendedAttribute" format="String" mandatory="false" />
        <mapping source="msExchExtensionAttribute17" target="str_entry" type="ExtendedAttribute" format="String" mandatory="false" />
        
        <mapping source="manager" target="hierarchicalManager" type="Reference" mandatory="false" />
        <mapping source="streetAddress" target="address1" type="String" mandatory="false" />
        <mapping source="postalCode" target="zipcode" type="String" mandatory="false" />
        <mapping source="l" target="city" type="String" mandatory="false" />
        <mapping source="co" target="country" type="String" mandatory="false" />
        
        <mapping source="physicalDeliveryOfficeName" target="Localization" type="Reference" mandatory="false" />
        <mapping source="street" target="address2" type="String" mandatory="false" />
        <mapping source="extensionAttribute8" target="BU" type="ExtendedAttribute" format="String" />
        <mapping source="otherTelephone" target="abregefixe" type="ExtendedAttribute" format="String" />
        <mapping source="otherMobile" target="abregemobile" type="ExtendedAttribute" format="String" />
        <mapping source="company" target="LawSociety" type="ExtendedAttribute" format="String" />

        <mapping source="personalTitle" target="title" type="String" mandatory="false" />
    </users>

</organization>

Le script ne crée pas les organisations. Pour que la synchronisation soit effective, il faut que l’organisation (ici BU VISIATIV) soit déjà existante dans l’annuaire de l’intranet.