Set the Destination targetaddress based on the Source targetaddress (Active Directory)

Created: 2022-08-31 09:38:35
Modified: 2022-08-31 09:38:35
Tags: Active Directory Custom Mapping

For an AD destination, the default mapping to set targetaddress is: targetaddress=~target~

The ~target~ is a variable which may be modified if you have configured options on the ‘SMTP Addresses’ tab. If no options are selected, ~target~ will equal the source ‘mail’ value.

In some instances, you may want to set the Destination targetaddress based on the actual Source targetaddress value.

Here are the steps to do so:

  1. By default, targetaddress is not discovered. If you do not already have one, create a custom sourcedef file.

  2. In the custom sourcedef, and add targetaddress to the Attribs= parameter. NOTE: Do not remove any attributes. Add ‘targetaddress’ to the list of attributes. Be sure to use the comma to separate the values. It does not have to be alphabetical. We recommend putting custom attributes right at the front of the list.

  3. If you don’t have one already, you need to create a custom Object Map file as well.

  4. In the Custom map file, locate the default mapping and change it to: targetaddress=^targetaddress^

The above mapping will use the source targetaddress value to set the destination targetaddress.

Share this article:
Knowledgebase

Directory
  1. Directify - Self Service

  2. Mimic - Replication

  3. UnitySync - Sync
Password
  1. emPass - Sync
Obsolete
  1. Profiler
  2. SimpleSync