Skip to content

Access Request Submitted Email for Requester After Validation Email Template

The Access Request Submitted Email for Requester After Validation email is sent to the requester to notify them which access requests were successfully submitted and which failed during the validation process. For example, if a user already has access to one of the requested access items, that specific request will fail.

Name: Access Request Submitted Email for Requester After Validation

Subject: Your request for access for #if ($requestDetails && $requestDetails.size() == 1) requestDetails.get(0).identityName #elseif (requestDetails.size() > 1) $requestDetails.size() identities #end was submitted.

Body:

Dear ${user.name},

You've requested access for the following identities:

#foreach ( $requestDetail in $requestDetails ) ${requestDetail.identityName}:
#set ($successDetails = $requestDetail.getSuccessDetails()) #if ($successDetails && $successDetails.size() > 0) The following item(s) was requested successfully:

    - #foreach ( $typeEntry in $objectTypeToPrettyPrint.entrySet() ) #set ($type = $typeEntry.getKey()) #set ($prettyType = $typeEntry.getValue()) #set ($objectDetails = {}) #set ($objectDetails = ${successDetails.get($type)}) #if ( $objectDetails.size() > 0 )

    - $prettyType: #foreach ($requestedObjectDetail in $objectDetails)

        - ${requestedObjectDetail.objectName} #if($requestedObjectDetail.removeDate) (Access Sunset Date: ${requestedObjectDetail.removeDate})#end

    #end
    - #end #end

#end #set ($exclusionDetails = $requestDetail.getExclusionDetails()) #if ($exclusionDetails && $exclusionDetails.size() > 0) Your request for the following item(s) failed:

    - #foreach ( $typeEntry in $objectTypeToPrettyPrint.entrySet() ) #set ($type = $typeEntry.getKey()) #set ($prettyType = $typeEntry.getValue()) #set ($objectDetails = {}) #set ($objectDetails = ${exclusionDetails.get($type)}) #if ( $objectDetails.size() > 0 )

    - $prettyType: #foreach ($requestedObjectDetail in $objectDetails)

        - ${requestedObjectDetail.objectName} #if ($requestedObjectDetail.exclusionReason) ($requestedObjectDetail.exclusionReason) #end

        #end
    - #end #end

#end #end

Thanks,
The ${PRODUCT_NAME} Team

Attributes

This email template uses version 1 global variables and the following template-specific attributes:

Name Type Description
objectTypeToPrettyPrint Map A map of details about the requested object type to their display name.
requestDetails List A list of the access request details.
requestedObjectDetail.sourceInformation List A list of objects representing the accounts where the access has been provisioned, including the following:

    sourceName - The name of the source.

    sourceAccountName - The name of the account on the source.

    sourceAccountId - The ID of the account on the source.