REST API Service with External Authentication

kosi
Kilo Contributor

We have a ServiceNow instance that is integrated with ActiveDirectory (AD) and no internal users.

Whenever the REST API is triggered, authentication error is thrown.

Is there any restriction of using REST APIs with external authentication?

ServiceNow instance is Geneva.

8 REPLIES 8

Hi Kalyan,



Error 302 is something to do with url redirection. Not sure on this error.


Error 401 is username or password is incorrect. Try giving correct username and password.


Try to use postman tool to consume your Rest API.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

Hi Kalyan,



Any update on this?


Can you mark answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps people to find similar question easily. Thanks in advance.



Regards


Ankur


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

Hi Kalyan,



Any update on this?


Can you mark answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


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

Subhajit1
Giga Guru

Just an addition to what Ankur has already said, the API User or Integration user, whatever you choose to call it, should have the rest_service, import_scheduler, and import_transformer roles, the last two if you are using import Sets, roles added to the user.


The ACLs on the underlying tables would also be required to be suitably modified to enable proper processing of Incoming data.