A guide explaining how to update the manager attribute for all users in an OU using Dynamic Columns.
Connect the Source and target to AD by using the Active Directory Users provider.
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 False
in the Manager field in the property collection.
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.
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;
}
}
Now we just create a simple Schema Map mapping the X_Manager to Manager and using DSID as the Key column.
Now run the compare by clicking Compare A > B
and synchronise the changes.