Skip to content

Commit 12e59d8

Browse files
Rampriya-SadminSapphicFire
authored
Check any approvals waiting in inactive users queue (#176)
* Check any approvals waiting in inactive users queue * Update README.md Check any approvals waiting in inactive users queue --------- Co-authored-by: admin <[email protected]> Co-authored-by: Astrid Sapphire <[email protected]>
1 parent 8e6ecc1 commit 12e59d8

File tree

3 files changed

+52
-6
lines changed

3 files changed

+52
-6
lines changed

Diff for: README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ Open-Sourced community contributed and owned repository for Instance Scan Defini
1111
# Checks in this repository
1212

1313
## Category: Manageability
14-
### Inactive user check : Catalog task Assigned To
14+
15+
### Inactive user check: Approvals
16+
Check any approvals waiting in inactive users queue
17+
18+
### Inactive user check: Catalog task Assigned To
1519
Check any Catalog Tasks Assigned to Inactive user
1620

1721
### Check any assets assigned to inactive user
1822
Check if any asset is assigned to inactive users.
1923

20-
### Inactive User Check : Catalog Item
24+
### Inactive User Check: Catalog Item
2125
We should ensure that inactive users are removed from being assigned as Catalog item owners.
2226

23-
###Avoid gs.log()Statement
27+
### Avoid gs.log()Statement
2428
Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as:
2529
gs.info() for informative messages.
2630
gs.warn() for warnings that don’t break functionality but may need attention.
@@ -276,7 +280,8 @@ Select the check box to ignore flushing some server-side caches, thus flushing o
276280
Avoid using gs.sleep() in any script because it does not release session and will cause delays, and add logs to the script whenever gs.sleep() has to be used.
277281

278282
## Category: Security
279-
##Check Mandatory fields on incident
283+
284+
### Check Mandatory fields on incident
280285
This check is used to find mandatory fields on incident
281286

282287
### Avoid using setBasicAuth for REST messages
@@ -345,7 +350,7 @@ Scripts in ACLs ARE executed regardless of whether or not the Advanced checked b
345350
### Added a Number Prefix which already exists
346351
Creating new number records does not require uniqueness. Though having duplicate number records causes some ServiceNow core functionality not to behave as expected. For example, the search might return a record from another table the number prefix is also used on.
347352

348-
## List Inactive users from active group
353+
### List Inactive users from active group
349354
List inactive users that still belongs to activate groups
350355

351356
### HTTP connection records not excluded on clones from Prod

Diff for: ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ad39iLllwcXyHcClv7tIwd87V8cvRPeDsEWhujC7w1DXOJARowOvatgfrJ6huznwKD8Ym_GIVfl7PZ1NAb0TvBct1I5MCraGOXtinvkZTnKtuTjEnnJsqRyGMyFb_-Viy2859sV9UchleBGNZcdOAoYS9VxgJipc3kAkVY-8drBXYR-fgsuqdjibiGMamqIBK-T0jH31vi5l08hbDYl6CjUnsec_PicEvjqH4VRO1PI0yxa0opSkycRNQaOeWDCTCnCmXmAO_h7tPnTY4ukpLX6P7pNr7S5VHsRErCHo3xWx1dgQysQRT4d8oGWNLXFS6Ux9VsED9ZGa9muvG3EwfDEBWf1mndDg2aFsJCI0VgvHUWxtXAYKswTpzpIeonD_UlNy6lry5UTrGn914G5HQj1bkGKssxB_TnZxBhVU70gs7H4YWcZZiymK4ZVypdxO97eU-PMaFIeEeg-KI2RNHOllDrmVgI9SMgmUrAzm7UHQnvwD9ZZjESMKLav2aZikMuPuZcvuLA5FJOWR4U2clQuD-57-8EIsp-nUvLK6km2axLfgWaUNfhuz-0nCpuCny-egrIAYwImdUvEd0hmOmN8F0Y1s3buIBJBFIzxeXwEleYzHofdgxpI3LB2GYfkLjakhitC1oa6nCtPJ3QvyOYJQG6WwiSPl6iZvCMxS45Y
1+
PvIJkj0CrrOfy28QU4MMOVPIVwbWwbZNEk791oAm_r9fD0zBfYoaliv_t3ocWE-jyR_-Dkn3tSDp9qH83fL1xeyAC9JcPXdfC7xPPrY1OIdhX-5GZfO5IV8vWlIkvLri0B_Z06LS33VbB6r4RYl-bZ6_qqCGwanl8ZpEONw91C1yFp3TyBjrXuvPSLaH-xPboIx_im9iKOVKphzJIzR3HqKBRTQXh1DbVHygA0qHTUPaoHgeoMASJ3DsL9OBfaBYmcNN7vc2LQaHbAwZQjRLm7bttFhM-JLEJZr8JRXFfnCIdqQdJGE5z5LHYfkpiWAIpUIBr76PiKus3cvc3vYI78aSRaC1DkwKdIYq6LpQfrkeULVsZGQt_-zhqwA6trToVpr6-KZbWFFUUM-WnMGii9QRKBjMFpMOrKC6JPwrHNUWvBDdeX0iD3Yazn2-j1kt8klH5muw0MnNqT4gtWd62asS6cabYF4Nernw4RZJedWzYDRmZURbnQNLx93BFbQqMF0ky0jMxYy3Ff3yJDo2SzuutMtE8VLa0BVadhasdYUtzgl_q0S4M_DSkozXdOoxSUTIapSZKrudXX7rhu-7i0-knQaJccfmhSBc7aQ4I-yVLhT5PDTY_BO6chD5iM2XxNYzXaKGTrGRDzyGjofq5YYIE8xdxwFzj-W2W95RaF8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
2+
<scan_table_check action="INSERT_OR_UPDATE">
3+
<active>true</active>
4+
<advanced>false</advanced>
5+
<category>manageability</category>
6+
<conditions table="sysapproval_approver">approver.active=false^EQ<item endquery="false" field="approver.active" goto="false" newquery="false" operator="=" or="false" value="false"/>
7+
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
8+
</conditions>
9+
<description>Check any approvals waitin on inactive users queue</description>
10+
<documentation_url/>
11+
<finding_type>scan_finding</finding_type>
12+
<name>Inactive user check : Approval</name>
13+
<priority>1</priority>
14+
<resolution_details/>
15+
<run_condition/>
16+
<score_max>100</score_max>
17+
<score_min>0</score_min>
18+
<score_scale>1</score_scale>
19+
<script><![CDATA[(function (engine) {
20+
21+
// Add your code here
22+
23+
})(engine);]]></script>
24+
<short_description>Check any approvals waitin on inactive users queue</short_description>
25+
<sys_class_name>scan_table_check</sys_class_name>
26+
<sys_created_by>admin</sys_created_by>
27+
<sys_created_on>2024-10-31 15:26:29</sys_created_on>
28+
<sys_id>8de1905683e512103d6c98c6feaad3b9</sys_id>
29+
<sys_mod_count>0</sys_mod_count>
30+
<sys_name>Inactive user check : Approval</sys_name>
31+
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
32+
<sys_policy/>
33+
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
34+
<sys_update_name>scan_table_check_8de1905683e512103d6c98c6feaad3b9</sys_update_name>
35+
<sys_updated_by>admin</sys_updated_by>
36+
<sys_updated_on>2024-10-31 15:26:29</sys_updated_on>
37+
<table>sysapproval_approver</table>
38+
<use_manifest>false</use_manifest>
39+
</scan_table_check>
40+
<sys_translated_text action="delete_multiple" query="documentkey=8de1905683e512103d6c98c6feaad3b9"/>
41+
</record_update>

0 commit comments

Comments
 (0)