How to Restrict Access to Specific Tables for Integration
PreviousCreating a Custom Field in ServiceNowNextHow to Restrict "Incident" Data to Specific 3rd Party Companies
Last updated
Was this helpful?
Was this helpful?
(function executeRule(current, previous) {
// Bypass restriction for admin users
if (gs.hasRole('admin')) {
return; // Allow admins to proceed
}
// Abort any operation on the change_request table
current.setAbortAction(true); // Prevent any operation from completing
// Apply a query that results in no records being returned
current.addQuery('number', "00000000000"); // An invalid query to ensure no records are returned
})(current, previous);