Hi Team,
I am trying to use the below transform for generating unique username and have mapped it in create profile for distinguishedName attribute.However i am getting below error for this configuration.
{
"attributes": {
"cloudMaxSize": "100",
"cloudMaxUniqueChecks": "5",
"cloudRequired": "true",
"template": "$distinguishedName"
},
"isRequired": false,
"multi": false,
"name": "distinguishedName",
"transform": {
"type": "usernameGenerator",
"attributes": {
"sourceCheck": true,
"patterns": [
"CN=$fi.$ln,OU=$ldc,OU=Users,OU=$lfc,OU=Staff,DC=ds,DC=leeds,DC=ac,DC=uk", "CN=$fi.$ln,OU=$ldc,OU=Users,OU=$lfc,OU=Staff,DC=ds,DC=leeds,DC=ac,DC=uk", "CN=$fn.$mi.$ln${uniqueCounter},OU=$ldc,OU=Users,OU=$lfc,OU=Staff,DC=ds,DC=leeds,DC=ac,DC=uk"
],
"fn": {
"type": "identityAttribute",
"attributes": {
"name": "firstname"
}
},
"ln": {
"type": "identityAttribute",
"attributes": {
"name": "lastname"
}
},
"ldc": {
"type": "identityAttribute",
"attributes": {
"name": "legacyDepartmentCode"
}
},
"lfc": {
"type": "identityAttribute",
"attributes": {
"name": "legacyFacultyCode"
}
},
"fi": {
"type": "substring",
"attributes": {
"input": {
"type": "identityAttribute",
"attributes": {
"name": "firstname"
}
},
"begin": 0,
"end": 1
}
},
"mi": {
"type": "substring",
"attributes": {
"input": {
"type": "identityAttribute",
"attributes": {
"name": "middlename"
}
},
"begin": 0,
"end": 1
}
}
}
},
"type": "usernameGenerator"
}
Is there anything else that i am missing?