Hello,
I am working on an Active Directory Create Account policy in SailPoint ISC and need some guidance on the best approach for generating the AD distinguishedName.
Requirement
For AD account creation, I need to generate the distinguishedName dynamically using:
CN=<generated sAMAccountName>,<dynamic target OU>
Example expected values:
CN=testuser,OU=Employees,OU=User Accounts,DC=example,DC=com
or
CN=testuser,OU=Contractors,OU=User Accounts,DC=example,DC=com
(there are more of these)
Current Create Account setup
sAMAccountName is currently generated using an Attribute Generator rule. That part works correctly, it is a more complex generation so I am using the rule to generate it and this cannot be touched,
What I tried
I created an identity attribute that resolves the target AD OU based on employee type. The identity attribute value resolves correctly on the identity side.
I then tried to reference that value in the Create Account policy distinguishedName Static value:
$adTargetOU → Identity Attribute not mapped anywhere in the policy this has a transform to dynamically get the OU based on the Employee Type. (I do realize it is kinda dumb to reference it like this but I needed something)
CN=$sAMAccountName,$adTargetOu
I also tested using an approved unused AD extension attribute as a helper attribute. I added the extension attribute to the AD account schema and mapped the OU value (identity attribute) to it and yes I did move the extension attribute above DN in the policy.
CN=$sAMAccountName,$extensionAttribute15
That also failed with:
com.sailpoint.seaspray.template.TemplateException: Invalid get reference: $extensionAttribute15 - seaspray[line 1, column 20]
So based on testing, Static distinguishedName can reference $sAMAccountName, but it does not appear able to reference the OU identity attribute or the extension attribute.
Question
What is the recommended approach in ISC for this use case?
I need the final distinguishedName to use both:
1. The generated sAMAccountName 2. A dynamic OU based on employee type
I would like to keep the rule to the very end until I have no other choice. All i need to know is:
- Can I reference both a create account profile attribute (sAMAccountName) and a identity attribute(
adTargetOu) in a create account profile attribute (distinguishedName)? - Why I do I ger the Invalid get reference error when I reference the
extensionAttribute15inside thedistinguishedName?
Any guidance or example configuration would be appreciated.
Thank you.



