Skip to content

Inactive user Check : Catalog Items #173

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
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Open-Sourced community contributed and owned repository for Instance Scan Defini

## Category: Manageability

### Inactive User Check : Catalog Item
We should ensure that inactive users are removed from being assigned as Catalog item owners.

###Avoid gs.log()Statement
Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as:
gs.info() for informative messages.
Expand Down
2 changes: 1 addition & 1 deletion ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2GkIkYTRLHBrnaK0BLk-XjxdsvdTIZ9jJdpNRMX35K_6xuWTi5y1Ry99K-DOjlG11wqAiWwvl7aCdE4ZWrSiATbI0lxnUdQ9WxlKwYNvs1x4VCYSXFOyYvTvKT3kiAZAzCrckOa4Em4EIaQWsrb_I8Hs0bgKv33rj-ePUrlm_eyaKJ2rnW23umP3MLy86FEu-J5jxkDLisX7iqlAtjOoRsUQBweQsMoxupOYvfpdE9hb2_IVDL9CoKdTg80_4ggyJ8PNBz0-61EPdmnU7cRKcwrgivmxrwlsMZRJ1uYb2HSI-uveGE4A7AF1o6mBZIz6ssbtFd7EiA0adaGXD5P15jiG014hPjkYP4HKiiA0_Yjt6wL60LGi3OSCJ9gd8YGeijcceUhadJ8o7-_9kKB87bMrCZLimt0eMOU9IP8roKLd8mrCC7yROA1N93b861zaMf9Rya_aFIMJAxF42hodGemepQf6byCLRA_-rQf6UZS9gCn3BUKuaXq3SQ-zJZRa8abRZPslmATdHB_qc3qD-zHdKaau-2U4IjCX5uN8_zJWyiHrskGbzNbjghd7A0IyCLH5cWiIxHZp41YeMQQhXX0ZQyhH8rnFFviKVQkfU9MEVdpqhBTLKe5B0bM5sXYhejFEzKJayrE0FcpgYQhxsN3AyPQpH5w62LMaCkTbugU
uTtI4o90QWk2giM8-uXZ_tS99axtH6tt4ufWIybm3AOX5QnKW5ZHLipIhVtx2peKcDTR4wNX2mxV6kiA4H3pv1cPHvrUfoZZFM1EZ4W0S-seqtQBnVeqdAFzXQRUUPZ_ToCVlmdKCKjcpemPf4qOuHAh9zIhjtXI7Ohc19D_JUVIUIWBoC4ff_dyV1N_niivUkpb-5OGz9KGetsD19QcEwscb49F54W5XW3C-LMTZRAjnedoj9XiwUv9jw3rv5hMzmE01iL5c9jYTVcgCydHSKL5CWPKUY7Wxyz5Tr0PQir-KMOFPvxlKEwRTJWT7xlcFQ2o3EVIoYR1CulDes2n9LqPPIaSq7_x8Mgvj3JrfuMFngiJZ_Ik1uyKk23puplCbPD_7FtOpafe-pkROTj8KESq_cdAlJ4E6G1ZJ0jfUJuYA8Ua-mB1ii8RilO5BUr0DFprOYwe6pgBPl3hAwGXZ3ppMw11UrTnVhjXAllk6XWUE3BAG0mogEMQS9QNO05iLTwaW5Ad0Gy_tOvZRu7j6pEZpVbK7yUhRiJzVhFA6XUMxupEvZZ6JX3ClTTRQdgJuQvAp0mssWfdDWLuWzDnf8IhgQVF7dPP9HMWkQcdf8-DeUawrjEIrLfUhXzP9cEVH-dgKQK1BVGJtjQpNVC9RAe_ReKIkfmMfrqakQ-r3I0
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="sc_cat_item">owner.active=true^EQ<item endquery="false" field="owner.active" goto="false" newquery="false" operator="=" or="false" value="true"/>
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
</conditions>
<description>We should ensure that inactive users are removed from being assigned as Catalog item owners.</description>
<documentation_url/>
<finding_type>scan_finding</finding_type>
<name>Inactive user check : Catalog Item</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 Catalog Item owner is Active user </short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-31 14:09:55</sys_created_on>
<sys_id>dcd18896c3211210d419de1d05013128</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>Inactive user check : Catalog Item</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_dcd18896c3211210d419de1d05013128</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-31 14:09:55</sys_updated_on>
<table>sc_cat_item</table>
<use_manifest>false</use_manifest>
</scan_table_check>
<sys_translated_text action="delete_multiple" query="documentkey=dcd18896c3211210d419de1d05013128"/>
</record_update>
Loading