ACL allow to write for some specific fields still return status code 200 for Table API ?

hacktd
Mega Guru

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:

hacktd_0-1697164173947.png

 

Not allow fields:

hacktd_1-1697164349198.png

 

 

1 REPLY 1

AshishKM
Kilo Patron
Kilo Patron

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