REST API calls for a user in a domain separated instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 03:23 PM
We have an integration to pull table data from ServiceNow in our application. We ask the user for their instance id, username and password (we are using basic auth right now).
We are making API calls using the base URL of <instance>.service-now.com/api/
A customer of ours is in domain separated instances. What addition information would they need to provide and what is the format of the base URL for api calls? The access their instance via https://<instance>service-now.com/<subdomain>
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 04:36 PM
Hi, I would expect that access\visibility would be controlled by the sys_user account used for authentication.
The API's are documents here
REST API | ServiceNow Developers
and this will include the URL's, you can also test\view these via the REST API Explorer in your instance.
- I would not expect domain to be included in a URL, unless in a specific filter\query outside of the base URL.
Perhaps you can clarify your question\requirements, are you expecting the user to access data outside of their domain visibility, or do you have a specific fault\issue found when testing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 11:00 AM
I think our engineers have tracked it to a permissions issue with the account that our customer is authenticating with. We are only expecting to have access to incidents within the sub-domain.