Issue while consuming table level API via third party application (Table is cmdb_ci_server)

nareshTT
Tera Contributor

Hello Expert,

 

I need your guidance about an issue i am facing. We are working on an integration that consume table level API ( cmdb_ci_server) . Intention is to read CI information via this API. we have created a record in sys_user table and using that user details as a credentials while trying to access CI details. But we are getting below error : 

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

 

Could you please help me to understand what am i missing here ? 

 

Thank you.

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@nareshTT 

Error 401 means incorrect username and password

Also note that API user should have read access to that table.

Please verify the Table level ACLs for READ operation.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Bhuvan
Mega Patron

@nareshTT 

 

Check if integration user has read access to the table cmdb_ci_server and make sure credentials are correct. 

 

Test it from Postman tool and make sure access is working as expected. Check user role and ACLs associated with it and once it meets the user criteria to read the table data, it should work fine.

 

Below is a sample GET request from Postman

Bhuvan_0-1759207030687.png

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan