We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Create email notification within instance security center when I run file export

Malo
Tera Contributor

send an email notification for when I run a file export within the instance security center as an elevated user, e.g Admin

I need an email notification sent to the "risk_group"

 

How do I create an email notification within the instance security center

12 REPLIES 12

Hi, If you want to use a BR to define recipients, then you would want to include this in your event trigger script IE query for recipients then trigger multiple instances of your sysevent and set a recipient as parm1 or 2 for each event. But in my opinion it is better to manage the recipients via membership of a group configured in the Notification who will receive tab, and this solution is configuration whereas a BR solution is customization.

I think I am creating more confusion

 

The recipient is already defined on group.  Who will relieve?

 

That is not where I am having issues, issue is who is sending, I dont want it to trigger when anyone other than a user with admin role sends it 

I would create a custom event and trigger only when user meets the admin requirement IE.

if (gs.hasRole("admin") ||  (gs.hasRole("security_admin")) {

gs.eventQueue('appsec.security.exports.admin', current, ",");

}

 

got it so no need for a BR. Will attempt and let you know how it works out. 

 

Appreciate your help sir

struggling with this code, I keep getting an error and cant see any error message parsing error: unexpected token {

_William_Knight_1-1700525091887.png