How to use generated SamAccountName in displayName attribute generator rule

After reading the attribute generator rule show and tell, I have a question.

I have two attribute in provisioning policy for which needs attributeGenerator rule.

  1. SamAccountName
  2. DisplayName

2nd logic depends on output of step 1.

How should i use generated SamAccountName in displayName attribute generator rule.

Thanks !

If the logic for the Display Name does not have additional Uniqueness constraints, you could likely use the AttributeGeneratior Rule for the SamAccountName requirement, and pass the existing displayName (Or on create, pass a default value) when creating the provisioning plan.
Then use a before provisioning rule to get the result from the SamAccountName field and do the additional calculations to get the desired DisplayName and update the DisplayName on the plan to the correct value.

I don’t think you can guarantee that the SamAccountName field will be calculated before the display name to be able to use that in an Attribute Generator rule for DisplayName also.

Alternately, since this seems to be for AD, you could do the DisplayName calculations in a Connector Before Creation Rule and/or Before Modify Rule with Powershell if you do not need additional attributes that are not already in the plan.

You can reference the values of attributes that appear above as they are calculated in order (see Reordering Attributes: Configuring Source Account Provisioning - SailPoint Identity Services).

For example, here the sAMAccountName was calculated and is then used in the UPN with the $

image

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.