Table API - Failed API level ACL Validation

Nicola Attico
ServiceNow Employee
ServiceNow Employee

Hi,

I've created a custom table in a scoped app

I've configured the table to be called by REST API (

I've configured ACL so that user with a specific role can perform all CRUD operations

I've given that role to a user

Verified that the user can see the record in the table and create a new record

Tested with REST API Explorer (it works with admin)

Tested the curl code (it works for admin, but not with my user)

Getting the following error message:

 

 

 

{
"error": {
"message": "User Not Authorized",
"detail": "Failed API level ACL Validation"
},
"status": "failure"
}

 

What am I missing?

Thanks,

Nicola

1 REPLY 1

Ahmmed Ali
Mega Sage

Hello @Nicola Attico ,

 

Is the user record you are using has the role "rest_platform_access"? Did you validate the ACL configured in scripted API record record as well as the resource level ACL?

 

Below links explains ACL configuration for scripted API.

 

https://docs.servicenow.com/bundle/rome-application-development/page/integrate/custom-web-services/t...

 

Thank you,

Ali

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

Thank you,
Ali