403 Forbidden when posting REST

martin_chabarri
Mega Expert

Hello all,

Trying to POST to OOB API https://INSTANCE.service-now.com/api/now/table/incident   to create an incident. Getting a 403 Forbidden and the following response:

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

I am using Basic Authentication and the user has ITIL, rest_service, and Admin roles.

Anyone else run into this? Thanks in advance

1 ACCEPTED SOLUTION

martin_chabarri
Mega Expert

It was a glaring oversight on my part.


I was able to use this same message and POST to my developer instance using a header that included Authorization Basic = YWRtaW46YWRtaW4=




I changed this in our company instance to Authorization simply being 'Basic' and like magic, I received a valid response.




Thank you all for the help.  


View solution in original post

7 REPLIES 7

srinivasthelu
Tera Guru

Strange. It should work.



Are you able to see access the incident table through UI with same user credentials?


I know, pretty odd. I can authenticate to the WSDL of the table with the same user. I've also tried other admin users


Mike Allen
Mega Sage

Can you check this:



Capture.PNG



If it is set to false, it will also give you forbidden.


Capture.PNG