User Not Authenticated - Required to Provide Auth Information

tiguin2798
Tera Guru

Good morning,

I am fairly new to ServiceNow and trying to set up an API to go from one of our SharePoint forms to create an incident in our instance. I think we have everything almost there as we were receiving the incidents in test until we added the body. Once we added the body as provided by "Rest API Explorer" we started receiving an error both in Nintex and PowerAutomate.

{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}

I did create a user specifically for this API. I have tried adding this both in our Nintex workflow as the user account and in the body. It is not locked out and also has the following roles.

 

NOTE: I added the role snc_platform_rest_api_access to the default ACL "Scripted REST External Default" as I was not finding the role snc_external (even as an elevated admin user).

tiguin2798_0-1710851280892.png


I have also tried with the user being given the admin role, as well as with Authorization (and no ACLs) being turned off both in the resource and API definition. Below is the script the "Rest API Explorer" gave me for the body which I added in the API Resource linked to the definition. I did change where it had admin to include the username and password of the user we wished to use. Is there something I am missing?

tiguin2798_1-1710852892317.png

 

Thank you!


 

5 REPLIES 5

Please inbox me if you want to discuss this. 

I am not sure why you are using servicenow end point in post method, i think, servicenow is provider and other application is consumer. 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution