Skip to content

Check problem inactive user #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ Check if any asset is assigned to inactive users.
### Inactive User Check: Catalog Item
We should ensure that inactive users are removed from being assigned as Catalog item owners.

### Avoid gs.log()Statement
### Check problem ticket assigned to inactive user
Make sure that a problem ticket is not assigned to an inactive user.

### Avoid gs.log() Statement
Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as:
gs.info() for informative messages.
gs.warn() for warnings that don’t break functionality but may need attention.
Expand Down
2 changes: 1 addition & 1 deletion ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PvIJkj0CrrOfy28QU4MMOVPIVwbWwbZNEk791oAm_r9fD0zBfYoaliv_t3ocWE-jyR_-Dkn3tSDp9qH83fL1xeyAC9JcPXdfC7xPPrY1OIdhX-5GZfO5IV8vWlIkvLri0B_Z06LS33VbB6r4RYl-bZ6_qqCGwanl8ZpEONw91C1yFp3TyBjrXuvPSLaH-xPboIx_im9iKOVKphzJIzR3HqKBRTQXh1DbVHygA0qHTUPaoHgeoMASJ3DsL9OBfaBYmcNN7vc2LQaHbAwZQjRLm7bttFhM-JLEJZr8JRXFfnCIdqQdJGE5z5LHYfkpiWAIpUIBr76PiKus3cvc3vYI78aSRaC1DkwKdIYq6LpQfrkeULVsZGQt_-zhqwA6trToVpr6-KZbWFFUUM-WnMGii9QRKBjMFpMOrKC6JPwrHNUWvBDdeX0iD3Yazn2-j1kt8klH5muw0MnNqT4gtWd62asS6cabYF4Nernw4RZJedWzYDRmZURbnQNLx93BFbQqMF0ky0jMxYy3Ff3yJDo2SzuutMtE8VLa0BVadhasdYUtzgl_q0S4M_DSkozXdOoxSUTIapSZKrudXX7rhu-7i0-knQaJccfmhSBc7aQ4I-yVLhT5PDTY_BO6chD5iM2XxNYzXaKGTrGRDzyGjofq5YYIE8xdxwFzj-W2W95RaF8
g3fOXFKd_SJhY9hj5S6s3duX-d8QXo-aSq9DmLRSggO5QMR75a3S7veyxd7UW-55ROSZ3KZjkORvxDYC4eAoUw8hM5sBWzpif0rXl-I8pW_VUCIh6epUd3BCmn83iXPR1-OT_yZ9dFtlQN97LDs2GL0KQjct68x8NHekh9tYbFUjuQUBI_KuJJ0K9Vb1BgVtLHwuTloIyflunbMQLgcrSSCxSC_INduOiWNzlFF2AFYjlcv8I4JjPpaFDCHCcaPGYHUmAVfsjTiBx3owim2ZBkmIBrQmCDl3m8sqmnfrGXsU-FDAXaMghtw5gFVdQt1vsqnZmW16o7TGnwo6I7w4q8h37ATVhuwgCA_rUAI6ckPtO9uBWYLC7AJX3X2P2emhszEC2sQwmy17Ul9guViUL4LIA4LpeuG6virKuq8nUJne6mrzciepOadDXUVYriNwLjTWy9qlIhIgpaD1wv0MckKAJ1vx_io6bROOgr3xgI3p717PF6RYfnUoS57_l5IuKfCVaFNHDA0VO0x8o9_B0aq3HHJksOnbeLFNSEdIm5_dK32KOcxzWKa5NYIqDimQqQvAvTnhqucdsENG6K8G3Olw1auQYgIu5J3s0RHxY52Nn3Zx7wCFFJXSLpKeU6T-E3M9JHF_nAa3s-FUWwuvCZL_38uyxhcKSBCFDOsN_Rg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
<scan_table_check action="INSERT_OR_UPDATE">
<active>true</active>
<advanced>false</advanced>
<category>manageability</category>
<conditions table="problem">assigned_to.active=false^EQ<item endquery="false" field="assigned_to.active" goto="false" newquery="false" operator="=" or="false" value="false"/>
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
</conditions>
<description>Make sure that a problem ticket is not assigned to an inactive user</description>
<documentation_url/>
<finding_type>scan_finding</finding_type>
<name>Check problem assigned to inactive user</name>
<priority>2</priority>
<resolution_details/>
<run_condition/>
<score_max>100</score_max>
<score_min>0</score_min>
<score_scale>1</score_scale>
<script><![CDATA[(function (engine) {

// Add your code here

})(engine);]]></script>
<short_description>Check problem assigned to inactive user</short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-11-01 01:46:12</sys_created_on>
<sys_id>7741e65ac3291210766bb3edd40131e6</sys_id>
<sys_mod_count>1</sys_mod_count>
<sys_name>Check problem assigned to inactive user</sys_name>
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
<sys_policy/>
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
<sys_update_name>scan_table_check_7741e65ac3291210766bb3edd40131e6</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-11-01 01:48:09</sys_updated_on>
<table>problem</table>
<use_manifest>false</use_manifest>
</scan_table_check>
<sys_translated_text action="delete_multiple" query="documentkey=7741e65ac3291210766bb3edd40131e6"/>
</record_update>
Loading