Required to provide Auth information error in REST integration

Masato Oyama
Kilo Contributor

Hi All,

I am trying to do inbound integration to create incident in SN.
I have given the SN end point to external tool and also i have given username and password.

But when the external tool is trying to access to SN, they are getting error message as below.

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

 

What shouold we do to access the SN?

 

*SN are enabled "Multiple SSO plugin".

8 REPLIES 8

If you are using a local account yet still receiving the auth error then I would validate that the account has the proper permissions to access the API. My suggestion is use a tool like Postman to build a mock REST call to the API using the credentials provided and validate if it works or not. Also make sure that the local account does not have MFA enabled otherwise you have to append the MFA token along with the password. Each OOB API has its own required roles that the user account needs to have in order to access. You can find the list of APIs and their requirements here: https://docs.servicenow.com/bundle/orlando-application-development/page/build/applications/concept/api-rest.html

Also you can try inputting the user account password into the user record and updating. If SSO was enabled after account was created then the user record might need a little update.

Akshata jamdar
Mega Guru
Hello Masato Oyama,
 
 
I would like to jump into the conversation,
 
You can either use Basic auth/auth 2.0 method or try to put http headers as Authorization- Basic<your token here> and in this you need to set Authentication as  No authentication  in the authentication section.
 
 
Hope this will helps.



Kindly mark an answer as correct and helpful if it will resolve your query.

Regards,

Akshata

Enkhtsetseg Gan
Kilo Explorer

How did you resolve it?