Access Request Decision Email Template

Hi everyone,

Has anyone been able to successfully retrieve the following fields in the Access Request email template?

I’m trying to populate these values:

  1. Requester login
  2. Justification provided in the request
  3. Requested group name
  4. Group/access profile/role description
  5. Application name

If you’ve managed to retrieve any of these (especially 2, 4, and 5), could you share how you accessed them?

Thanks in advance!

the following docs will give the in detail what you need actually

Hi @gustavoesp_1337, according to the documentation you can use the following variables for each of those!

  1. “requesterName”
  2. “accessRequestMetadata”
  3. “requestedObjectName” or “accessibleItems” or “accessProfileName”
  4. “requestedObjectName” or “accessibleItems” or “accessProfileName”
  5. “sourceInformation”

The documentation above has details on all of the available variables in that template.

If it’s still not working even with those variables, please shoot us what you’ve tried and we can work from there!

Hey Tyler

tried to use the accessRequestMetadata variable but it always return empty

The template was like this: (i followed the example in the documentation)

    <p>#if(${accessRequestMetadata} && ${accessRequestMetadata.get("requestContextInformation")}) Requested Dimensions Attributes:#foreach($key in ${accessRequestMetadata.get("requestContextInformation").keySet()})</p>
    <ul><li>${key}:${accessRequestMetadata.get("requestContextInformation").get($key)}</li></ul>#end#end

but it returned nothing.

Also tried:

<p><strong>Debug - accessRequestMetadata keys:</strong></p>
<ul>
  #foreach($key in $accessRequestMetadata.keySet())
    <li>$key: $accessRequestMetadata.get($key)</li>
  #end
</ul>

and it didn’t return anything also