below is my transform for mail generation
{
"id": "90c9c4c8-d117-4023-a037-00ce0633e3f2",
"name": "DOW_EMAIL_GENERATION_WD",
"type": "concat",
"attributes": {
"values": [
{
"type": "identityAttribute",
"attributes": {
"name": "inititalforaddisplayname"
}
},
{
"type": "identityAttribute",
"attributes": {
"name": "lname"
}
},
"@",
{
"type": "identityAttribute",
"attributes": {
"name": "domainbasedontenant"
}
}
]
},
"internal": false
}```
@Rakesh_Singh_1234 -
Is this transform intended for an Identity Profile mapping or a Create Account profile?
If you’re working with a Create Account profile, you can utilize the “Create Unique LDAP Attribute” generator to create unique account attributes beyond just the username.
To configure this, go to the “Create Account” configuration page of your source and set up the email attribute accordingly.
Make sure your Identity Profile includes an attribute that extracts the first initial of the user’s first name — this will be essential for building your desired pattern.
But if it for Identity Profile Mapping then You would need a custom rule to make that work in an identity profile mapping.
https://developer.sailpoint.com/idn/docs/rules/cloud-rules
Hope this helps.
1 Like
@officialamitguptaa hey amit we are making at ideentity profile level and then mapping it in downstream app create account(like AD ) for that can it be done through a transform by adding a unique identitifier in trasnform itself>??
@Rakesh_Singh_1234 -
I have attached a sample. Let me know if it works
{
"name": "email_Generator",
"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
}
Thank you!
hey thanks @officialamitguptaa but my question is can i directly apply this at identity profile level?
@Rakesh_Singh_1234 -
You need to delete the old one first and then create this one. If you are modifying the existing one, make sure to keep the same name,id etc. Just update the logic.
In addition to what @officialamitguptaa mentioned, you cannot change the root transform type once it’s created
@officialamitguptaa i am not able to save it showing error .can we use the transfrom only in provisioning policy?
@officialamitguptaa i got an error when i applied this transform in prov policy of ad
An unexpected error occurred: Unable to generate a unique value for ‘118112’, action UniqueAccountIdValidator[[email protected],app=Active Directory] is not retry-able due to ConnectorException: [ InvalidConfigurationException ] [ Error details ] Required string attribute ‘User’ is not defined.It must have a valid value.