[ERROR]: Source descriptor is empty while recording access for table sn_hr_core_case: no thrown error. Security restricted: Read operation on table 'sn_hr_core_case' from scope 'Global' was denied because the source could not be found.

Smith Johnson
Tera Guru

Hello,

I try to run a script in the scripts background, but I face the following error:

Source descriptor is empty while recording access for table sn_hr_core_case: no thrown error
Security restricted: Read operation on table 'sn_hr_core_case' from scope 'Global' was denied because the source could not be found. Please contact the application admin.

The table looks like this:

find_real_file.png

 

I have create the following record but the issue still occurs.

find_real_file.png

Any ideas?????

4 REPLIES 4

Prasad Pagar
Mega Sage

Hi @Smith Johnson 

You need to define Application Cross Scope to get read of this error. 

find_real_file.png

it should look like this

find_real_file.png

Thank you
Prasad

Thanks for the reply.

I just did it, but the problem still occurs.

find_real_file.png

Alex87
Tera Contributor

Hi,

I have the same issue. Did above described steps. Added on Application Cross Scope four allowed status access to sn_HR_Core_Case table access. read, write, delete and create.

 

Plus ive approved all requests on Restricted Caller Access Privileges page/list. Still having the issue. Any suggestion what it can be?

error is: Security restricted: Read operation on table 'sn_hr_core_case' from scope 'Global' was denied. The application 'Global' must declare a cross scope access privilege. Please contact the application admin to update their access requests.

adrosos
ServiceNow Employee
ServiceNow Employee

Hi,

 

The sn_hr_core_case table has Restricted Caller Access enabled to protect access to its data across scopes. That feature checks access from a source script to the table, but it wasn't able to find a valid source ("...denied because the source could not be found"). 

 

Scripts - Background isn't considered a valid source for Restricted Caller Access/RCA, so this error will appear when trying to query the table directly from another scope there. If you query the table from Scripts - Background with the scope set to sn_hr_core instead of Global, it should allow the query.

Alternatively, you can move your script into a Script Include and then call that Script Include from Scripts - Background. You will then need to go grant access to the generated RCA record for that Script Include