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

I think you may be on to something. However, we are still on Eureka, I do not see this as an available option. Do you know of an equivalent in Eureka?


Hmmm.. I did not think this was possible before Fuji, so this might not be it.



Test 1, can you do it with your admin account?   That will rule out roles and ACLs if you cannot.


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.