How to GlideRecord to syslog from a scoped application

__ __2
Tera Expert

I got the following error when querying a GlideRecord against syslog from a scoped application.

"com.glide.script.fencing.access.ScopeAccessNotGrantedException:read access to syslog not granted"

 

I think I should add a record to the cross-scope-privileges, but I don't know the specific method.

Please tell me how to resolve.

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @__ __2,

 

Yes. or you need to create Script include with GlideRecord in Global scope and call in your application scope.

 

Take a look at old thread solution: https://www.servicenow.com/community/itsm-forum/i-am-getting-a-security-restriction-error-when-i-run... 

 

Securing an application using Cross Scope Access, Application Access Settings & Restrict Table Choi... 

 


If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello @__ __2 ,

                         To grant your scoped application access to the "syslog" table, you need to add a cross-scope privilege for the affected table. Cross-scope privileges allow one scope (application) to access tables in another scope. You can follow below step to achieve it

  • Navigate to "System Security" > "Cross-Scope Privileges" in the application navigator.
  • Click the "New" button to create a new cross-scope privilege record.
  • In the "Source Scope" field, select the scope of your application.
  • In the "Target Table" field, enter "syslog" or search for it in the table picker.
  • Configure the necessary privileges, such as "Read" or any other required permissions.
  • Save the cross-scope privilege record.

Kindly mark correct and helpful if applicable

I tried it, but the result did not change.
Are there any flaws in the settings?

____2_0-1692074318818.png

 

Hi @__ __2,

Have you tried by creating Script include with GlideRecord in Global scope and call in your application scope?


If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow