Can we get Identity Details(like Department, Cost Center etc .) in Access Request Reviewer Email Template?

I have tried the Below Method but unfortunately it is not working for me . Any leads are much appreciated .

#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))
#set($department = $identity.getAttribute(“department”))

Thanks in advance !

In email templates, you should be able to use

${<objectVariable>.<property>}

Example: ${user.department}

i need requestee’s details @Carlatto . tried this but no luck

Access Request Reviewer email templates use Version 1 Global Variables. Unfortunately Version 1 doesn’t allow you to do what you are wanting to do. Maybe someday Sailpoint will convert the template to use Version 2.

2 Likes