REST API incident_sla is not accessible

gvikramg
Kilo Explorer

Hi,

I'm using REST API and not able to access some tables like incident_sla

I have ACL rules.

rest_service,

web_service_admin

Request URL: https://abc.service-now.com/api/now/table/incident_sla?sysparm_limit=20

<response>

<error>

<message>User Not Authorized</message>

<detail>736099 records constrained due to ACL restrictions</detail>

</error>

<status>failure</status>

</response>

Able to access other tables like incident, task_sla, sys_user ...etc and can see the response.

<response>

<result>...</result>

<result>...</result>

</response>

Do I need to have any more rules. Please let me know.

Thank You,

Vikram

1 ACCEPTED SOLUTION

tony_barratt
ServiceNow Employee
ServiceNow Employee

Hi Vikram,



If you interactively log in to the instance with the REST user id can you see records via incident_sla.list in the Application Navigator?



If not, incident_sla is a database view of tables task_sla and incident with where clause = taskslatable_task = inc_sys_id,


perhaps   a read ACL on incident_sla which allows your REST user id to read it, will fix the issue?



Best Regards



Tony




View solution in original post

5 REPLIES 5

Chuck Tomasi
Tera Patron

Hi Vikram,



This may be helpful.



Limiting access through REST with ACL


In general, each authenticated user is entitled to records and fields as they would be with a desktop connection (via ACLs).