ACL allow to write for some specific fields still return status code 200 for Table API ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 07:32 PM
Hi,
In my instance, I have this user created for another back-end calls and update record at another system using ServiceNow table API. This user only has rights to write on some specific fields, the thing is if this user updates an field which it is not allowed to update the system still don't update that field's value but the status code still returns status code 200. Is this behavior normal in ServiceNow ? Below here are attachments related to "Allow field" request and "Not allow field" request responses
Allow field:
Not allow fields:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 07:51 PM
Hi @hacktd ,
The HTTP 200 OK success status response code indicates that the request has succeeded and response object has result.
ACL logic applied at ServiceNow level which will take care all update based on the user's access permission.
If you want to define the return status, you can write Scripted REST API and manage the response object with desire status code.
Please mark correct answer and helpful for others if it help you
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution