Hey guys i need a trasnform for email geenration in ad prov policy based on two different sources :
1st source : it should create (userId)(uniquecounter)@domain.com else create for all other sources as
(initialoffname)(lastname)(uniquecounter)@domain.com
tried below but not working
{
"name": "mail",
"transform": {
"type": "usernameGenerator",
"attributes": {
"sourceCheck": true,
"patterns": [
"$initials$ln@$domain",
"$initials$ln${uniqueCounter}@$domain"
],
"initials": {
"type": "identityAttribute",
"attributes": {
"name": "inititalforaddisplayname"
}
},
"ln": {
"type": "identityAttribute",
"attributes": {
"name": "lname"
}
},
"domain": {
"type": "identityAttribute",
"attributes": {
"name": "domainbasedontenant"
}
}
}
},
"attributes": {
"cloudMaxSize": "100",
"cloudMaxUniqueChecks": "5",
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
}```