SIDHistory is a multi-valued attribute. For user accounts that have been through more than one migration, this attribute can contain several SIDs. Sometimes when migrating you may want to discard previous values during the migration.
To answer this situation we have a truncate or ‘prune’ SIDHistory feature in DirSync Pro. There is a config setting in the ini file which can clean out all but the one source environment from the SIDHistory field post-migration. To enable this feature add the following key to the <appSettings> section of the BinaryTree.DirSync.Exchange.exe.config file as displayed below and set the value to the profile(s) to prune:
<appSettings>
<add key="PruneSIDHistory" value="1" />
</appSettings>
In this example all SIDHistory in profile 1 would be pruned to only match that current source domain SID. The value field accepts multiple comma delimited entries, so for example “1,2,3,4” would be a valid entry pruning SIDHistory for four profiles.
How to Get the Correct Profile ID:
When you navigate to the appropriate DirSync profile, you can also see your profile ID in the URL in your browser. That ID is also stored in the [DirSyncPro] database in the table [dbo].[DirSync_SyncReportProfile], under the column BT_Config_FK.
Example: