Im customizing Access Request Reviewer notification. In the notification I would like show some identity attributes of the requested identity, but I 've noticed that only it is possible retrieve requestedForIdentityName value.
Is there any way to retrieve identity object of user requested in this template?.
This is a great question. I have not configured this email template much, but I did some testing and see that I am unable to reference the receiving identity’s values.
Normally, for other templates, you can use ${identity.} to display that information (ex. ${identity.employeeType}) but that does not work in this template, and it appears “identity” may not be supported for this case.
Curious to see if anyone else has any thoughts on this.
@colin_mckibben that’s interesting to me, because the user variable for the “Lifecycle State Change” template is the actual recipient of the email, not the subject of the change occurring. I feel like that may be the same for other templates.
Finally I was able to retrieve identity based on context object in the following way
#set($spctx=$spTools.class.forName("sailpoint.api.SailPointFactory").getMethod("getFactory", null).invoke(null, null).getCurrentContext())
#set($identity=$spctx.getObjectByName($spTools.class.forName("sailpoint.object.Identity"), $requestedForIdentityName))
Get email value from context: ${identity.email}
What is this voodoo? @ismaelmoreno1 can you point us to where/how you found out about this solution? This is very cool and more information could help other community members access data they need in email templates.