Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

ServiceNow REST API returns 401 Unauthorized and SOAP connector access failure

ManojKuamr
Kilo Contributor

I am integrating MuleSoft with ServiceNow Incident APIs.

Environment:
- ServiceNow Instance: dev182212.service-now.com
- MuleSoft Anypoint Studio
- Authentication: Basic Authentication

Issue 1:
ServiceNow SOAP connector connection test fails with:

"You don't have SOAP access to any tables, are you missing the 'soap' role on this account?"

The user has been assigned:
- admin
- soap
- itil

Issue 2:
REST API authentication also fails.

Endpoint:
GET /api/now/table/incident

Response:
401 Unauthorized

Verification Performed:
1. Verified instance URL.
2. Verified username and password.
3. Assigned admin, soap, and itil roles.
4. Tested directly from Postman using Basic Authentication.
5. Postman also returns 401 Unauthorized.
6. MuleSoft HTTP Request configuration uses the same credentials.

1 REPLY 1

Dr Atul G- LNG
Tera Patron

Hi @ManojKuamr 

 

There is KB has been released by SN latest on this.

 

rest_api_explorer

 

chk this: https://www.youtube.com/watch?v=d2HJ1TR9LDc

****************************************************************************************
Regards
Dr Atul G. - Learn N Grow Together ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
******************************************************************************************