Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.
No ratings
nimitdave
Saviynt Employee
Saviynt Employee

Use Case

Only one email per request should be triggered with all the access(including child access details), user and dynamic attribute details of created tasks on completion of approval workflows.

 

Pre-requisites

Request approval and task creation is working as expected.

Request should be approved and tasks should be present in the pending tasks tab.
 

Applicable Version(s)

 

All
 

Solution

Existing OOTB email templates and email processing job has below limitations:

  1. No variable for getting the child entitlements of the task entitlements in the email template.

  2. No option to send a single email per request with all the approved entitlements.

  3. Approver details in desired format (Only Display Name).

  4. All access details along with action as add/remove for a request cannot be made available in the single email template.

The expected solution should provide:
  1. Child entitlements in the task creation emails.

  2. All entitlement from all task created per request to be in one single email.

  3. Emails should be sent for eligible task types for a particular application. This should be captured for each endpoint in a customproperty32.

  4. Provision to send email to requestor, requestee , his manager and to a distribution list for particular endpoint. This is captured in the customproperty30 at endpoint level.

  5. Solution should be able to send email on the basis requested entitlements. Email can be sent to different person/team as per the entitlement in the email. And it should support a default email recipient. This is captured in the customproperty29

  6. Should have the flexibility to configure email templates at application level. This is captured in the customproperty1 of endpoint.

  7. The solution should access the AccessNow data through Saviynt proprietary database queries and REST API calls. 

  8. The connection details and credentials should be captured in the configuration file under Saviynt home directory.

  9. Passwords should be stored in encrypted format.

  10. Entitlement types for the eligible tasks should also be configured in this configuration file.

  11. Email template support below data set:

  • Beneficiary details.
  • Requester details.
  • Approver names.
  • Dynamic Attributes in request.
  • Comments.
  • Entitlements and child entitlements along with action as add or remove.
  • Support for the above details in Spanish and Portuguese.

To achieve the above email notification process a custom jar can be developed with below design:

  1. Custom jar will be invoked by a custom jar job. The endpoint name will be an attribute in the job arguments and will be an input to the custom jar solution. 
  2. Custom jar will pick up the tasks and request details for eligible records that needs to be processed.
  3. Eligibility Criteria for task to be picked up is that the attribute “SAVCONATTRS” should be null, task status should new/open and request status to be completed. 
  4. Fetch the details as per the defined data set to be supported for these tasks.
  5. Discard the task type that are not supported as per the customproperty32 for each endpoint.
  6. Merge the data and create an email content as per the defined email template in endpoint customproperty1 and customproperty30
  7. Create the recipients list for the email content as per the customproperty29 and customproperty30.
  8. Send the mail with the constructed email content for each recipient in the step (7) list separately.
  9. On success of email sent set the value for the successfully processed tasks in this run to TRUE.
  10. Log the process in log file at endpoint level.

Endpoint Level Configuration for the jar to control notifications:

  • Customproperty1: This capture the email template name that is to be use for creating the email content.

  • Customproperty29: This capture the email recipients list for the create email content. For eg. Default::dl-abc@xyz.com, qaz@mlp.com

  • Customproperty30: This capture the config that if the same email should be sent requestor, requestee and his manager for information. A DL and BCC can also be configured in this. E.g. is {"Requestee":"0","Manager":"0","Requestor":"0","DL":["dl-abc.com"],"BCC":["dl-abc.com "]}

  • Customproperty32: This config capture the eligible task types for the jar to consider while creating the email content. E.g. Revoke Access, Request for Access, Modify Account, New Account, Remove Account

APIs used:

  • api/login
  • api/v5/getUser
  • api/v5/fetchRequestApprovalDetails
  • api/v5/fetchRequestHistory
  • api/v5/getEntitlements

References

Comments
rushikeshvartak
All-Star
All-Star

Can we get jar file here 

sk
All-Star
All-Star

@nimitdave : We don't see JAR attached to KBA. Can we get the respective jar to achieve this?

nimitdave
Saviynt Employee
Saviynt Employee

@sk @rushikeshvartak , jar was developed specifically for a customer so cannot attach here. I have already provided the flow in detail here.

Version history
Last update:
‎03/30/2023 12:13 PM
Updated by:
Contributors