Adding user details in certification email template

version 8.4

Hi, I have been trying to add user’s details in certification email notifications, but the values are not getting displayed in the email. Tried $identityDisplayName, ${identityDisplayName}, $
[identity.getAttribute(“displayName”)}. But nothing seems to work. Can somebody share ideas what is wrong.

Hi @himabindu306 , can you try the following snippet:

<EmailTemplate name="TestEmail">
  <Body>

#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"), $ownerName))

Identity Name from context: ${identity.firstname} ${identity.lastname}

Identity Department from context: ${identity.department}

  </Body>
  <Description>Email Template</Description>
  <Subject>Test Email Template</Subject>
</EmailTemplate>

Hi Prashanth,

In which part of the email template should this snippet be placed

Hi @himabindu306

How to Find the Correct Variables and Object Structure

The best way to figure this out is to inspect:

  • The Email Template’s XML:
    1. Go to Debug > Email Template in IdentityIQ.
    2. Find the specific email template you are trying to modify.
    3. Click on View XML .
    4. Look at how other variables are referenced within the template (e.g., $certification.name , $certification.expiration ). This gives you clues about the top-level objects available.

here you can find the argument details like name and type.

name=“certification” type=“Certification” – The Certification object we are reminding someone about.
name=“recipient” type=“Identity” – The Identity object of the user being reminded.
name=“sender” type=“Identity” – The Identity object of the user doing the reminding.
name=“comment” type=“string” – Optional comment from the sender.

It should be within the Email’s Body tag.

Please refer to the “Email Template Arguments” article in community for more details.

Hi @himabindu306 ,

Use $identity.displayableName to retrieve the display name of the identity.

Hi @Arun-Kumar
$identity.displayableName is not working for me.

I have validated this functionality on IIQ 8.4p2 with the Certification Reminder template. The following variables are displaying correctly:

  • $recipient.displayableName: This corresponds to the certifier’s display name.
  • $sender.displayableName: This corresponds to the display name of the system administrator who initiated the certifications.

@himabindu306
Please validate above variables from your side and let us know if it solves your purpose.

Dear Pattabhi,

I want to print the user’s details who is getting certified, so above will not suffice.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.