- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2024 05:07 AM
Im trying to apply a machine_filter for importing machines from Microsoft TVM in VR. The filters the machines being imported as CIs, but doesn not filter the vulnerabilities on machines, so we end up with a lot of vulnerabilities that we do not want in VR.
Does anyone know how to actually write a machine filter for VR import based on rbac-groups in Microsoft TVM that makaes us able to exclude machines we dont want?
USecase now is to exclude all clients as they will be managed by another system.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 05:24 AM
Figured this out by myself.
Used this kb and adjusted the filter: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1573367
filter used:
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
ignore = true;
//sn_vul_msft_tvm.processor.processRecord(source);
if (source.u_rbacgroupname == "$rbacgroup1" || source.u_rbacgroupname == "$rbacgroup2")
sn_vul_msft_tvm.processor.processRecord(source);
})(source, map, log, target);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 05:24 AM
Figured this out by myself.
Used this kb and adjusted the filter: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1573367
filter used:
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
ignore = true;
//sn_vul_msft_tvm.processor.processRecord(source);
if (source.u_rbacgroupname == "$rbacgroup1" || source.u_rbacgroupname == "$rbacgroup2")
sn_vul_msft_tvm.processor.processRecord(source);
})(source, map, log, target);