Hi All, I have added on to my Transform to now lowercase all of the email per a new requirement. I added it to the transform as it looks to be in documentation but It is not doing as such. Anyone has a second eye for me.? I just need to turn [email protected] to [email protected]
So we hit a bump that not even i was aware. When the email is already on the users profile we are gold. X goes after when they are inactive and everything is lowercase. However when the system tries to create a new user that it finds in AD it errors on this transform for some reason which i am confused because the mapping on the profile should come before the transform as well the account is active so it should just leave it alone but to lower case it.
Browie points to the person that thinks they know the problem of the weekâŚ
Question; Is the email present on the identity when its coming from SOT?
If no then the issue is that you have to make a null check so that the condition when the user is active and email is empty we populate something like âN/Aâ depends what you decide. Why is it happening? Reason being email is a mandatory attribute on ISC, and if the user is active and does not have an AD account, the transform will try to write the value as empty which on ISC means that email is not present and identity runs into error.
try adding this statement at the first: "value": "#if($loweremail=='')N/A#elseif($status=='inactive')${loweremail}x#{else}$loweremail#end"
Letme know if the scenario is something else and i went into different direction!
Phil, I see what you are doing however the logic to add the email address along with the x when inactive isnât in your logic. The email should be [email protected] when active but then change to [email protected]
again, this works when the user is already in the system and has that field however when the user gets created in IDN for the first time it will error out for some reason though the ad account has a email. It wonât pick it up and lower case it only as it is as active account.
this particular one here is referencing identity attribute. But, if thereâs a transform on status identity attribute as well then it may fail [as sailpoint also suggests that identity errors may occur by using identity attribute].
See the attached document. Identity Attribute | SailPoint Developer Community
Sadly the new account will not first put the email address that is on AD before it does the lowercase and ignore the other logic that is related to inactive status. All users come and get create active. only users become inactive on end of contract or termed
It might be because on account creation, there is no cube for the check to happen against your âstatusâ variable. Iâve stuck in a firstValid to catch any errors there.
Also, Iâm also not sure that you can just add an âxâ without apache velocity thinking its a different variable.
This might work: