- Open the ODM-AD Dirsync Template Mappings configuration and go to Mappings tab.
- Find the User Principal Name attribute.
- Here are examples of a few formulas to customize the target object UserPrincipalName. Please consider that by using the sn attribute you run the risk of the value containing a space since some names contain a space. We recommend adding a trim statement.
s.givenName+"."+trim(s.sn)+"@"P.TargetDomain
Or
trunc(s.givenName+"."+trim(s.sn), 20)+"@"P.TargetDomain
Or
trunc(s.givenName+"."+trim(s.sn), 20)+"@yourdomain.com"
Recommendations:
- Test with multiple names to ensure the target UPN meets the target requirements.
- Place your workflow in Test Mode, run the workflow then check the Change log to see the UserPrincipalName meets your requirements.
- Once this is correct, remove Test Mode and run the workflow again.
Important:
- Any issues caused by a custom mapping are not supported and Quest will request the attribute mapping be returned to its default setting, or require a Quest Professional Services Resource be brought in to correct the attribute mappings (this is a fee based service).
For a detailed explanation for the available settings, please see the Directory Sync Advanced Mapping Guide:
https://support.quest.com/technical-documents/on-demand-migration/current/active-directory-sync-advanced-mapping-guide