ScopeAccessNotGrantedException
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 04:45 AM
Hi,
I have to populate the integration type field but the system throws the error when i run fix script.
var integrationName = 'Tenable'; //integration name
var integrationGR = new GlideRecord('sn_sec_int_integration');// Querying the sn_sec_int_integration table for the specified integration name
integrationGR.addQuery('name', 'integrationName');
integrationGR.query();
if (integrationGR.next()) {
integrationGR.integration_type = 'SCANNER';
integrationGR.update();
}
ERROR:
Can you please suggest the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 05:17 AM
Your error says it all: you are in the wrong scope. Can you try running your fix script in the same scope as the table your are updating? Or look in your Application Cross-Scope Access table to see if you have anything created for this access you can just set to 'allow' (depending on the version you are on).