Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

How to avoid attachment in Email notification triggered via Analytics Report

SureshPatike
Regular Contributor
Regular Contributor

We have configured Analytics report to trigger account password expiry reminder notifications to users on daily basis. We are capturing account data from report on the email body to display to user.

Report trigger process working as expected and users receving emails on those reminders, but we would like to avoid the email attachment with that user details as report when we already stamping that information in email body. 

Are there any options to turn-off the email attachments or avoid sending report as attachment in those email reminder notifications triggering by analytics report?

Thank you

19 REPLIES 19

rushikeshvartak
All-Star
All-Star

Just click send email in analytics configuration


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

SureshPatike
Regular Contributor
Regular Contributor

We have already enabled Send Email as Attachment option in report analytics for that report. With this option, mail will be triggerred normally, but its also sending report as attachment to user along with email.

SureshPatike_0-1723150303912.png

 

Untick save data option


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

If i untick that option, then will am able to still read data from report to mail body table with columns values populated? Hope mailbody data will not be distrubed right. Let me test and keep you post on this. Thank you.

No it won’t impact. It will not store data in elastic search 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

That didn't help, am still getting report as attachment.

SureshPatike_0-1723157920922.png

Untick of above option not storing report in saviynt analytics folder.

SureshPatike_1-1723157999415.png

 

schedule report and try


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

We have tried scheduled the report for every 5 mins, but its still sending mail with attachment of report in it.

Share transport export of report & email as we are using email notification and sending without attachements


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

SureshPatike_0-1724447022101.pngSureshPatike_1-1724447067740.png

email template:

SureshPatike_2-1724447298544.png

 

Please find the requested details for your reference.

 

what is to cc bcc 

also share transport of report 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Nothing specified in CC or BCC, only to has ${userEmail}

Please find the transport of report.

  • Report changes
    • Set base count in report =1 
    • Query as below

SELECT '100000'                                        AS USERNAME,
       u.displayname                                   AS DISPLAYNAME,
       u.email                                         AS EMAIL,
       a.name                                          AS ACCOUNT_NAME,
       e.displayname                                   AS DOMAIN,
       a.lastpasswordchange                            AS
       LAST_PASSWORD_CHANGE_DAT,
       CASE
         WHEN a.status = 1 THEN 'Active'
         ELSE a.status
       END                                             AS ACCOUNT_STATE,
       Date_add(a.lastpasswordchange, interval 42 day) AS PASSWORD_EXPIRY_ON
FROM   users u,
       accounts a,
       user_accounts ua,
       endpoints e
WHERE  u.userkey = ua.userkey
       AND ua.accountkey = a.accountkey
       AND a.endpointkey = e.endpointkey
       AND a.endpointkey IN ( 28, 29, 30, 31 )
       AND a.status NOT IN ( 'SUSPENDED FROM IMPORT SERVICE', 'Inactive' )
       AND Datediff(Date_add(a.lastpasswordchange, interval 42 day), SYSDATE())
           BETWEEN
           0
           AND 5
       AND u.customproperty39 = 'Active'
       AND u.regioncode IN ( 'Active', 'Ready for Hire', 'Leave of Absence' )
       AND u.companyname = 'abc' 

  • in Email body use below code

 

<!DOCTYPE html>
<html>

<head>
    <title>Rushilesh</title>
    <style>
        table {
            border-collapse: collapse;
            border: 1px solid black;
            width: 200%;
        }

        th,
        td {
            border: 1px solid black;
            padding: 10px;
        }

        th {
            background-color: #87CEFA;
            text-align: center;
            color: black;
            font-size: 18px
        }

        td {
            text-align: center;
        }
    </style>
</head>

<body>
   
    <table>
        <tr>
            <th>DISPLAYNAME</th>
            <th>EMAIL</th>
            <th>ACCOUNT_NAME</th>
            <th>DOMAIN</th>
            <th>LAST_PASSWORD_CHANGE_DAT</th>
            <th>ACOUNT_STATE</th>
            <th>PASSWORD_EXPIRY_ON</th>
  
        </tr>
        <%int cnt=Integer.parseInt("${ANALYTICSDATA.USERNAME.size()}"); for(int i=0;i<cnt;i=i+1){%>
            <tr>
                <td>${ANALYTICSDATA.'DISPLAYNAME'[i]}</td>
                <td>${ANALYTICSDATA.'EMAIL'[i]}</td>
                <td>${ANALYTICSDATA.'ACCOUNT_NAME'[i]}</td>
                <td>${ANALYTICSDATA.'DOMAIN'[i]}</td>
                <td>${ANALYTICSDATA.'LAST_PASSWORD_CHANGE_DAT'[i]}</td>
                <td>${ANALYTICSDATA.'ACCOUNT_STATE'[i]}</td>
                <td>${ANALYTICSDATA.'PASSWORD_EXPIRY_ON'[i]}</td>
            </tr>
            <%}%>
    </table> <br>
   
    <p>Regards,<br> Rushikesh Vartak</p>
</body>

</html>

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

I have exactly followed your email template and query, report setting base count to 1 and unchecked save data. but still no luck. we still see email going with attachment.

SureshPatike_0-1724855762200.png

 

I tried your export and its working for me in v24.4 and +


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Not sure where exactly am doing wrong. Correct me if below am not doing right.

1. base count 1

2. uncheck save data

3. check send as email attachment

4. category : password expiry

  • Create new report and email template and validate

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

thats what exactly i did with your query and email template. it was still sending attachment on email.

Raise support ticket


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.