Skip to content
Closed
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
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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<javascript:gs.beginningOfToday()'); // end date is before today;
delSncAccess.query();
delSncAccess.deleteMultiple(); // delete all snc access records whith past end date.
Loading