Attribute Sync is the process of updating an attribute on a source if an associated identity attribute changes. Examples include changes to job title, location, department etc. Synchronizing an attribute is only available if it is mapped to an identity attribute on the account create profile of the target source. In the case of the manager attribute in Active Directory, this is typically mapped to an out of the box generator:
Using this method means that attribute sync is not available for the manager attribute, which is often a customer requirement. However, we can facilitate this by using two new identity attributes and a transform as described below.
Step 1:
On the relevant identity profile, create a new identity attribute to hold the distinguished name for the identity, and map it to the distinguishedName attribute on your Active Directory source:
Step 2:
Upload the transform to the tenant:
{ "attributes": { "attributeName": "distinguishedName", "name": "Cloud Services Deployment Utility", "operation": "getReferenceIdentityAttribute", "uid": "manager" }, "name": "Determine Manager DN", "type": "rule" }
Step 3:
Create another new identity attribute to hold the distinguished name of the identity’s manager by mapping it to the new transform just uploaded:
Save and refresh the identity profile and check that the attributes are populated with the expected data.
- The Distinguished Name attribute should hold the DN of the identity
- The AD Manager Distinguished Name attribute should hold the DN of the identity’s manager
Note: on step 3 you must ensure the identity has a correlated manager and that manager identity has an AD account.
Step 4:
In your Active Directory source, navigate to the create profile and change the mapping of the manager attribute to the new identity attribute:
As this is now mapped to an identity attribute, it will be available to synchronise.
Step 5:
Navigate to Account Sync on the Active Directory source and enable synchronisation for the manager attribute:
Any changes to the manager attribute on an identity will now be synchronised to the Active directory source.
Related Articles: