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

[Email History Job] Error Sending Emails When Active Delegation Exists For Terminated User

Sivagami
Valued Contributor
Valued Contributor

Hi Team,

Let's say delegation is set up for a user A with delegate as User B from Jan 1st 2022 to Jan 1st 2024.

So any requests assigned to User A, then User B will also get the approval emails & can approve the requests.

Let's say On April 5th, 2023, the user B got terminated and their account & associated mailbox got disabled, user B's email address will no longer be found in the local recipient table.

When the email history job runs, it actually populates user A's and user B's email address and tries to send email but the attempt will fail with the error below as userb@domain.com is no longer found and is an invalid address.

 

2023-04-06 06:04:01,291 [pool-291-thread-3] DEBUG mail.EmailHistoryService - Found the following email ids from the map - [userb@domain.com, usera@domain.com] for the emails - [usera@domain.com]
2023-04-06 06:04:01,291 [pool-291-thread-3] DEBUG mail.EmailHistoryService - setting from address from email template: saviynt@mydomain.com
2023-04-06 06:04:01,291 [pool-291-thread-3] DEBUG mail.EmailHistoryService - Setting content type as text/html
2023-04-06 06:04:01,291 [pool-291-thread-3] DEBUG mail.EmailHistoryService - Sending email to[userb@domain.com, usera@domain.com], cc-null, bcc-null
2023-04-06 06:04:01,583 [pool-291-thread-3] ERROR mail.EmailHistoryService - Exception
at com.saviynt.mail.EmailHistoryService.sendEmails(EmailHistoryService.groovy:2738)
at com.saviynt.mail.EmailHistoryService$sendEmails$1.call(Unknown Source)
at com.saviynt.mail.EmailHistoryService.sendEmail(EmailHistoryService.groovy:2578)
at com.saviynt.mail.EmailHistoryService.this$dist$invoke$1(EmailHistoryService.groovy)
at com.saviynt.mail.EmailHistoryService$SendEmailCallable.methodMissing(EmailHistoryService.groovy)
at com.saviynt.mail.EmailHistoryService$SendEmailCallable.call(EmailHistoryService.groovy:3170)
at com.saviynt.mail.EmailHistoryService$SendEmailCallable.call(EmailHistoryService.groovy)
2023-04-06 06:04:01,584 [pool-291-thread-3] ERROR mail.EmailHistoryService - Error while sending email Failed messages: javax.mail.SendFailedException: Invalid Addresses;

Ideally when Saviynt detects the active delegation available for terminated user, it should invalidate the delegation and try to send email to the active user only.

We can manually go and put an enddate for delegation for it to stop happening but I'm looking for an automated way to avoid such issues in future. Kindly assist.

Thanks in advance

-Siva

2 REPLIES 2

nimitdave
Saviynt Employee
Saviynt Employee

Correct, right now you need to delete the delegation manually. now way to automate. But you can submit an enhancement in https://ideas.saviynt.com/.

Sivagami
Valued Contributor
Valued Contributor

Thanks @nimitdave for confirming it's an existing issue.

Created an ideas ticket - https://ideas.saviynt.com/ideas/EIC-I-4456 as it doesn't make sense to do this manual check.

-Siva