How to change the email notification header
Question
How to change email notifications to reflect different environments?
Environment
10.5;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;13.2;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Password Vault Web Access;Vault Server
Answer
The use case is simply being able to quickly differentiate between, for example, a test environment and a lab environment.
There are a couple of methods to accomplish this.
For standard email notifications, there are a couple of fields that can be edited.
-------------------------------
1) Log into the PVWA as an administrator
2) The navigation path to the settings will differ between version 7 and version 8
a) In version 7, Navigate to "System Configuration" -> "ENE Configuration"
b) In version 8, navigate to "Administration" -> "Notification Settings"
3) To change the "Display Name", or what would be displayed in the email client, navigate to the "EventNotificationEngineSendMethod", expand "SMTPCA" then edit the "Display Name". The display name is analogous to the "From" in an email message.
4) To differentiate even further, the "General Header" in the "Notification Templates" can also be edited. The text in the "General Header" can be edited to suit the use case, and is displayed in the top of the email message.
After editing, ensure that the "Apply" and "OK" buttons are pressed to save the changes.
No service restart is required. The next email to be sent will use the updated template.
-------------------------------
For more robust notifications, an additional parameter can be added to the NotificationTemplateMapFile. If this method is used, this parameter must be added to existing email templates.
--------------------------------
The following example is to add a specific location for report notification emails:
1) Log into the PVWA as an administrator
2) The navigation path to the settings will differ between version 7 and version 8
a) In version 7, Navigate to "System Configuration" -> "ENE Configuration"
b) In version 8, navigate to "Administration" -> "Notification Settings"
3) Navigate to the "EventNotificationEngineSendMethod", expand "NotificationTemplateMapFile"
4) Right click and select "Add Parm"
5) For a location, edit the following fields
a) Name: CA-Vault-Location
b) Type: Application
c) OnAbsence: Put in whatever text is desired. For example, "CA Production Vault"
d) Click "Apply" then "OK"
6) This parameter must be added to all email templates where this information is desired. For example, to differentiate the source of a report:
Dear <CA-RecipientFirstName/> <CA-RecipientLastName/>,
Report <TaskName/> was generated successfully.
Report details
=================================
Location: <CA-Vault-Location/>
Type: <TaskSubType/>
Generated by: <CreatorFirstName/> <CreatorLastName/>
Generated on: <GenerationDate/>*
*This report is scheduled to run automatically <Scheduling/> and will be generated again on <NextScheduleDate/>.
To access the report click the following link: "<CA-PVWABaseUrl/>/pvwa8/directaccess.aspx?reportdetails.aspx&Object=<FileName/>&folder=<CA-EscapedReportFolderName/>&Safe=<SafeName/>&DownloadReport=Yes"
Note the use of "Location" in the above example, and referenced by the new CA-Vault-Location parameter. When entering parameters, it must follow the format of <ParamName/>. Note the use of the leading slash.
As in the previous example, no restart of services is required.
-------------------------------
Additional Information
Details
Q:
How to change email notifications to reflect different environments?
A:
The use case is simply being able to quickly differentiate between, for example, a test environment and a lab environment.
There are a couple of methods to accomplish this.
For standard email notifications, there are a couple of fields that can be edited.
1) Log into the PVWA as an administrator
2) The navigation path to the settings will differ between version 7 and version 8
a) In version 7, Navigate to "System Configuration" -> "ENE Configuration"
b) In version 8, navigate to "Administration" -> "Notification Settings"
3) To change the "Display Name", or what would be displayed in the email client, navigate to the "EventNotificationEngineSendMethod", expand "SMTPCA" then edit the "Display Name". The display name is analogous to the "From" in an email message.
4) To differentiate even further, the "General Header" in the "Notification Templates" can also be edited. The text in the "General Header" can be edited to suit the use case, and is displayed in the top of the email message.
After editing, ensure that the "Apply" and "OK" buttons are pressed to save the changes.
No service restart is required. The next email to be sent will use the updated template.
For more robust notifications, an additional parameter can be added to the NotificationTemplateMapFile. If this method is used, this parameter must be added to existing email templates.
The following example is to add a specific location for report notification emails:
1) Log into the PVWA as an administrator
2) The navigation path to the settings will differ between version 7 and version 8
a) In version 7, Navigate to "System Configuration" -> "ENE Configuration"
b) In version 8, navigate to "Administration" -> "Notification Settings"
3) Navigate to the "EventNotificationEngineSendMethod", expand "NotificationTemplateMapFile"
4) Right click and select "Add Parm"
5) For a location, edit the following fields
a) Name: CA-Vault-Location
b) Type: Application
c) OnAbsence: Put in whatever text is desired. For example, "CA Production Vault"
d) Click "Apply" then "OK"
6) This parameter must be added to all email templates where this information is desired. For example, to differentiate the source of a report:
Dear <CA-RecipientFirstName/> <CA-RecipientLastName/>,
Report <TaskName/> was generated successfully.
Report details
=================================
Location: <CA-Vault-Location/>
Type: <TaskSubType/>
Generated by: <CreatorFirstName/> <CreatorLastName/>
Generated on: <GenerationDate/>*
*This report is scheduled to run automatically <Scheduling/> and will be generated again on <NextScheduleDate/>.
To access the report click the following link: "<CA-PVWABaseUrl/>/pvwa8/directaccess.aspx?reportdetails.aspx&Object=<FileName/>&folder=<CA-EscapedReportFolderName/>&Safe=<SafeName/>&DownloadReport=Yes"
Note the use of "Location" in the above example, and referenced by the new CA-Vault-Location parameter. When entering parameters, it must follow the format of <ParamName/>. Note the use of the leading slash.
As in the previous example, no restart of services is required.