ODMAD Dirsync: How to modify template, when users or group names should be renamed? For example, it's required to add "-A" at the end of username. Specifically, UPN must be updated properly..
To resolve the issue, several attributes' mappings must be modified in the template, that is used by Stage:
CN mapping would be: cn+"-A"
distinguishedName would be: GetDN(cn + "-A")
samAccountName will be: sAMAccountName + "-A"
UPN will be: sAMAccountName + "-A@" + Profile.TargetDomain