How To

Update the Active Directory Manager Attribute

A guide explaining how to update the manager attribute for all users in an OU using Dynamic Columns.

Connect to Active Directory

Connect the Source and target to AD by using the Active Directory Users provider.

Connect to Active Directory

Modify the AD Configuration

By default we parse out the Manager field so that it's more suitable for input to other systems e.g.SharePoint.
However you can now switch off this parsing to get to the raw AD attribute value.

To update the manager you need to supply the full Distinguished name value of the AD Object you want to set which would be something like this below.

CN=Sean Cleaver,CN=Users,DC=xxx,DC=xxx,DC=com

Set TryParseValue and ReadOnly to Falsein the Manager field in the property collection.

Update Active Directory manager Attribute

Configure a Manager Dynamic field

We created a Dynamic Column to return the Distinguished Name of the Manager to set against the AD Users. Alternatively, you could use any attributes returned from the AD fields to set the manager's name.

Dynamic Columns

class DataSourceRowOverride : Simego.DataSync.DynamicColumns.DataSourceRowInternal
	public string X_Manager { get; set;}

	public override bool BeginRow()
		X_Manager = "CN=Sean Cleaver, CN=Users, DC=xxx, DC=xxx, DC=com";
		return true;

Map the X-Managers Dynamics column to the Manager attribute

Now we just create a simple Schema Map mapping the X_Manager to Manager and using DSID as the Key column.

Schema Map

Compare the Data and Synchronise

Now run the compare by clicking Compare A > B and synchronise the changes.