Tchater maintenant avec le support
Tchattez avec un ingénieur du support

On Demand Migration Current - Active Directory - Directory Sync Advanced Mapping Guide

NewGUID()

  • Purpose: This method is used to generate a random GUID

  • Syntax: NewGUID()

  • Example 1: The following expression will set the target object's CN as a random GUID; this is needed to avoid possible name collision as CN is not a unique attribute in Active Directory.

    Select mapping for ‘DistinguishName and double click, enter the below expression under value field:

    GetDn(NewGuid())

  • Example 2: The following expression will set the target object's samAccountName with a random GUID of 20 characters long.

    Select mapping for ‘samAccountName and double click, enter the below expression under value field:

    Left(NewGuid(), 20)

Default Advanced Mappings

The following are the target attributes which contain advanced mapping values by default. The defaults differ based on the source and target environment type.

Note: Changing the default advanced mappings may result in unexpected behavior.

Local to Local

distinguishedName

Target Attribute    : distinguishedName

Value        : GetDN(cn)

Condition    : Null

Definition    : This creates the DN for the target user. This is defined by the source CN and by reading the Target OU specified within the Stage Data step of a workflow.groupType

Target Attribute    : groupType

Value        : GetGroupType()

Condition    : Action = "create"

Definition    : This will set the group type on creation. The GetGroupType function looks up the setting in the Template selected to determine the target group type.

legacyExchangeDN

Target Attribute    : legacyExchangeDN        

Value        : GetLegacyExchangeDN(Target.ExchangeOrg, objectGuid)

Condition    : Null        

Definition    : This default mapping will read the exchange org info from the target environment and create the LegacyDN using this value.    

objectClass

Target Attribute    : objectClass        

Value        : GetObjectClass()            

Condition    : Action = "create"

Definition    : This will read the objectclass of the target user being created based on settings in the template.  Create users as, Create Groups as, etc.    

proxyAddresses

Target Attribute    : proxyAddresses

Value        : GetProxyAddresses(result("mail"), legacyExchangeDN, result("legacyExchangeDN"))

Condition    : Null

pwdLastSet

Target Attribute    : pwdLastSet

Value        : 0

Condition    : Action = "create"

targetAddress

Target Attribute    : targetAddress

Value        : GetTargetAddress()

Condition    : AllowTargetAddress()

unicodePwd

Target Attribute    : unicodePwd

Value        : EncodePwd(Profile.DefaultPassword)

Condition    : Action = "create"

userAccountControl

Target Attribute    : userAccountControl

Value        : GetUserAccountControl()

Condition    : Action = "create" or (Action = "update" and Target.HasCreateStamp)

userPrincipalName

Target Attribute    : userPrincipalName

Value        : ReplaceDomain(userPrincipalName, Profile.TargetDomain)

Condition    : Null

mail

Target Attribute    : mail

Value        : if(GetObjectClass()="group", ReplaceDomain(mail, Profile.TargetDomain), mail)

Condition    : Null

 

Cloud to Local

distinguishedName

Target Attribute    : distinguishedName

Value        : GetDN(cn)

Condition    : Null

Definition    : This creates the DN for the target user. This is defined by the source CN and by reading the Target OU specified within the Stage Data step of a workflow.

groupType

Target Attribute    : groupType

Value        : GetGroupType()

Condition    : Action = "create"

Definition    : This will set the group type on creation. The GetGroupType function looks up the setting in the Template selected to determine the group type.

legacyExchangeDN

Target Attribute    : legacyExchangeDN        

Value        : GetLegacyExchangeDN(Target.ExchangeOrg, objectGuid)

Condition    : Null                

msExchRecipientTypeDetails

Target Attribute    : RecipientTypeDetails

Value        : GetRecipientTypeDetails()

Condition    :  Action = "create"

objectClass

Target Attribute    : objectClass        

Value        : GetObjectClass()            

Condition    : Action = "create"        

proxyAddresses

Target Attribute    : proxyAddresses

Value        : GetProxyAddresses(result("mail"), legacyExchangeDN, result("legacyExchangeDN"))

Condition    : Null

unicodePwd

Target Attribute    : unicodePwd

Value        : EncodePwd(Profile.DefaultPassword)

Condition    : Action = "create"

userAccountControl

Target Attribute    : userAccountControl

Value        : GetUserAccountControl()

Condition    : Action = "create" or (Action = "update" and Target.HasCreateStamp)

userPrincipalName

Target Attribute    : userPrincipalName

Value        : ReplaceDomain(userPrincipalName, Profile.TargetDomain)

Condition    : Null

 

Documents connexes

The document was helpful.

Sélectionner une évaluation

I easily found the information I needed.

Sélectionner une évaluation