Hi @bhuvi_kpmg,
I think you are confused with the Create Account ID generator and the Username generator transform.
For the Username Generator transform you are trying, below is the related document.
Here is the transform you should use inside your create account profile :
{
"name": "distinguishedName",
"transform": {
"type": "usernameGenerator",
"attributes": {
"sourceCheck": true,
"patterns": [
"CN=$lastname\\, $firstname${uniqueCounter},$primaryGroupDN"
],
"firstname": {
"type": "identityAttribute",
"attributes": {
"name": "firstname"
}
},
"lastname": {
"type": "identityAttribute",
"attributes": {
"name": "lastname"
}
},
"primaryGroupDN": {
"type": "lookup",
"attributes": {
"input": {
"attributes": {
"name": "city"
},
"type": "identityAttribute"
},
"table": {
"Wichita": "OU=Users,OU=Accounts,OU=XX22,DC=ad,,DC=net",
"default": "OU=Human Users,DC=ad,,DC=net",
"Rosemount": "OU=Users,OU=Accounts,OU=XX,DC=ad,,DC=net"
}
}
}
}
},
"attributes": {
"cloudMaxUniqueChecks": "5",
"cloudMaxSize": "100",
"cloudRequired": "true"
},
"isRequired": false,
"type": "",
"isMultiValued": false
}
You don’t need to select any pattern in the UI, after updating the Account profile, the UI would show up like this :
Try it out and let me know how it goes.