Approval rules in Vulnerability response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2022 02:36 AM
Hi Experts,
I am using Approval rules on vulnerable item for False positive. In that i have 2 level approvals, level 1 is good.
In level2 i am checking if level 1 approver is same as level2 , based on that i am returning users. I will share the code, please have a look and help me...does anyone encountered this kind of scenario?
var gr = new GlideRecord('sysapproval_approver');
gr.addQuery('state', 'approved');
gr.addQuery('approver', 'b63f1639db642c103d1187f43a961963');
gr.addQuery('u_vulnerable_item', recordGr.sys_id); //sys id of VIT0048369
gr.query();
if (gr.next()) {
return {
users: "",
groups: ""
};
} else {
return {
users: "b63f1639db642c103d1187f43a961963",
groups: ""
};
}
Regards,
G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 06:04 AM
What is the issue you are facing in this logic?