Getting 401 Unauthorized Error While Calling ServiceNow Table API from Postman Using Basic Authentic

mahendraa
Tera Contributor

Hi ServiceNow Community,

I am trying to integrate Postman with my ServiceNow Developer Instance using the Table API. However, I am consistently getting a "401 Unauthorized" error.

Environment:

- Instance: ServiceNow Developer Instance
- Tool: Postman
- API: Table API
- HTTP Method: GET
- Table: Incident ("incident")
- Authentication Type: Basic Auth
- Username: admin

Request URL:

 

Troubleshooting Steps Already Tried:

1. Verified that I can log in to my ServiceNow instance through the browser.
2. Selected Basic Auth in Postman.
3. Entered my ServiceNow username and password.
4. Checked the request URL and HTTP method.
5. Retried the request, but I still receive the same 401 error.

Questions:

1. What could be causing this authentication error?
2. Is there any instance property or security setting that I need to check for Basic Authentication?
3. Does the user require any specific role, such as "snc_basic_auth_api_access", to access the Table API?
4. Is there any additional configuration required in Postman or ServiceNow?

I would appreciate any suggestions or step-by-step guidance to resolve this issue.

Thank you.

3 REPLIES 3

Vishnu-K
Mega Sage

Hi @mahendraa ,

 

You give "sn_incident_read" role to the user which you have created for this API useage and try again.

Hope this helps.

 

Thanks,

Vishnu

Also, SN has released some new roles on the API side. There was a KB for this earlier, so please look into that as well. @mahendraa