Execute operation on script include 'hr_caseOpenRequestFilterUtil' from scope 'Global' was denied.

spencerc3
Tera Contributor

Hi, 

 

We are trying to implement the Employee Center Out of the Box widget, 'My Items' which shows tasks, requests, surveys , and Today's Reservations to our custom portal.

 

When adding the widget to the page the functionality is fine up until i click 'Requests'

Screenshot 2025-09-05 180612.pngScreenshot 2025-09-05 180627.png

After clicking requests, I am getting an error for an HR util.

 

I tried creating cross scope privileges for global to have access to the HR script hr_caseOpenRequestFilterUtil. (script is in Human Resources: Core application). 

 

But I get this error 

Screenshot 2025-09-05 181037.png

Any help is appreciated! Thanks

1 ACCEPTED SOLUTION

G Ponsekar
Giga Guru

Hi @spencerc3 ,

 

Can you Update Restricted Caller Access 
This method keeps the HR script include secure while explicitly allowing your specific call. The error log should have automatically created a "Requested" entry in the Restricted Caller Access table.
  1. Navigate to System Applications > Restricted Caller Access.
  2. Search for a record where:
    • Source Scope: Global
    • Target Type: Script Include
    • Target: hr_caseOpenRequestFilterUtil
  3. The Status of this record will likely be Requested or Invalidated.
  4. Open the record and change the Status to Allowed.
  5. Save the record.

After applying solution, clear your browser cache and the ServiceNow cache by navigating to cache.do. Then, retry clicking the "Requests" tab in your custom portal to confirm that the error is resolved

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

 

View solution in original post

2 REPLIES 2

G Ponsekar
Giga Guru

Hi @spencerc3 ,

 

Can you Update Restricted Caller Access 
This method keeps the HR script include secure while explicitly allowing your specific call. The error log should have automatically created a "Requested" entry in the Restricted Caller Access table.
  1. Navigate to System Applications > Restricted Caller Access.
  2. Search for a record where:
    • Source Scope: Global
    • Target Type: Script Include
    • Target: hr_caseOpenRequestFilterUtil
  3. The Status of this record will likely be Requested or Invalidated.
  4. Open the record and change the Status to Allowed.
  5. Save the record.

After applying solution, clear your browser cache and the ServiceNow cache by navigating to cache.do. Then, retry clicking the "Requests" tab in your custom portal to confirm that the error is resolved

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

 

This solved it! Thank you!