diff --git a/Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/README.md b/Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/README.md new file mode 100644 index 0000000000..4e497e7a8d --- /dev/null +++ b/Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/README.md @@ -0,0 +1,3 @@ +**SNC Access Control (com.snc.snc_access_control) plugin to control access to your instances by Customer Service and Support personnel.** +This plugin introduce a table "snc_access_control" adnd is used to provide access to service now support personnels. +This script will delete the records which have passed the end date and are no longer required. diff --git a/Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/script.js b/Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/script.js new file mode 100644 index 0000000000..7373f0b85d --- /dev/null +++ b/Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/script.js @@ -0,0 +1,8 @@ +/* +SNC Access Controls table is used to provided access to servicenow technicians when they need access for troubleshtting any instance issue. +This script will delete the SNC access control records which have past end date for better table management. +*/ +var delSncAccess = new GlideRecord('snc_access_control'); +delSncAccess.addEncodedQuery('end