I am trying to create unique email in create provisional policy only if user is full time employee. I tried below transform but it is not working. is it possible to use transform for this logic
Hi I could see couple of mistakes in your transform
When you are getting employmentStatus you have to use “name” not attributeName in identityAttribute operation transform
In the expression you are doing a check if employmentstatus is TRUE which means employee is full time. If it is true your transform retruns empty value as it goes to positive condition.
In usernameGenerator you have use the syntax for uniqueCounter like this ${uniqueCounter}. So that is also not correct.
I have made those adjustments and created a new transform check if this works for you.
I have added some comments to understand better. remove them when you are testing.
For negativeCondition I have used firstValidTransform to get the existing email instead of returning blank. If that is the your use case you can return blank
Also use cloud* attribute that will allow to do a uniqueness retry
Thanks @udayputta for your response. I am getting uniqueness retry issue as follows:
trackingId: 22a525b3fc294e6d98ba20eef7b0ed3a java.lang.RuntimeException: sailpoint.tools.GeneralException: Unable to generate a unique value for 'unittest13@aaa.com', action UniqueAccountIdValidator[nativeIdentity=unit13.test13@bbb.com,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.
Could you please elaborate more on how to use cloud* attribute that will allow to do a uniqueness retry.
In the tranform that I have shared is already using that attribute. For more information you can refer the below link and use the correct count for your scenario