Response Body--Error "message": "Insufficient rights to query records",

Community Alums
Not applicable

I am getting a response as:-

{
  "error": {
    "message": "Insufficient rights to query records",
    "detail": "Field(s) present in the query do not have permission to be read"
  },
  "status": "failure"
}

Under the REST API Explorer, I am getting this error when I was checking with some logged-in user.
So, now it is happening due to ACL, but which ACL


Any idea for the debugging steps??

Warm Regards

Utsav

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Utsav JAISWAL 

what's your actual business requirement?

what is that logged in user doing with that REST API Explorer?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Maik Skoddow
Tera Patron
Tera Patron

Hi @Community Alums 

impersonate with the user that is performing the request and request the same records from the target table with exact the same query you have used in the REST API explorer.

Then start debugging the ACL issue. There are many helpful ressources available and some of them I have listed on my page at https://www.servicenow.com/community/servicenow-ai-platform-articles/administration-security-amp-data-privacy-knowledge-amp/ta-p/2318032#acl 

Maik