REST API Service with External Authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2017 06:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2017 03:29 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2017 05:33 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 04:02 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2017 03:32 AM
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.