usernameGenerator Transform

Hi @lisa.ivy, Thank you so much for responding back.

“Create Unique LDAP Attribute” does generate the unique value.

  1. Is it possible to define the multiple templates when we select this generator?
  2. Also, is there any way we can write transform and calculate the value dynamically for a template or it has to be always identity attributes or attributes from the “create profile” page?
    For eg: is it possible to use the below transform to calculate the value and pass that in the template → “template”:"$(valueFromTransform).$(lastname)$(uniqueCounter)@domain.com"

Sample Transform
{
“attributes”:{
“attributeA”:{
“attributes”:{
“attributeName”:“attributeA”,
“sourceName”:“sourceA”
},
“type”:“accountAttribute”
},
“firstInitial”:{
“attributes”:{
“begin”:0,
“end”:1,
“input”:{
“attributes”:{
“name”:“firstname”
},
“type”:“identityAttribute”
}
},
“type”:“substring”
},
“firstName”:{
“attributes”:{
“name”:“firstname”
},
“type”:“identityAttribute”
},
“value”:"#if($attributeA == ‘value1’)$firstName#{else}$firstInitial#end"
},
“type”:“static”
}

Thank you,
Sushant