Add recipient attributes in Access Request Reviewer Email Template

Hi,

Is it possible to include additional attributes of the recipient (i.e. the person for whom the request is submitted) in the Access Request Reviewer email template?

I came across an example in this post:
Retrieve identity attributes in Access Request Reviewer notification - SailPoint Developer Community

I tried the following:

#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}

But it doesn’t seem to work.

Any idea what I might be missing, or if there’s another approach to access the recipient’s attributes by usint this Out to the box email template ?

Thanks in advance!

Access Request Reviewer email templates use Version 1 Global Variables.

You should be able to use ${user.<identity variable>}

Example: ${user.email}

${user.email} is for user whom email will be sent. I need to display recipient information.

Thanks.

You are right. In this case, the only option you would have is $requestedForIdentityName

1 Like

Te alternatie that we found is to use update-public-identity-config | SailPoint Developer Community to configure a maximum 5 identity attributes that approver can see about recipient during approval.