what is the minimum user privilege needed to access all the table api from postman ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 11:53 AM
I want to fetch my table data through the table rest api end points. But certain table api end points like incident, incident_sla, incident_time_worked are showing either not authorised error or not returning any data.
I think the issue is related to user role.
What is the minimum role needed to access these table api end points?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 12:56 PM
Bipul,
To Create/Read/Update/Delete (CRUD) data from Tables in ServiceNow using Table API's, the user profile(ID and Password) in the Request from PostMan should have access to the Table and Its Operation.
-What is the minimum role needed to access these table api end points?
[There nothing like minimum role, try ITIL or Admin Role for simplicity, again it all depends on how your ACL's are configured to provide access to the table you are accessing and the Operation on the table.]
What ever user you are using in your API call, make sure that user has a role that grants access to the Operation you are performing on the target Table.
Reference:
Access control list rules (Jump to Results of failing an ACL rule on object under ACL Evaluation Process)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 01:12 PM
To be able to use the API in the first place, the user account will need the rest_api_explorer role. After that, the user will need access to whatever table and fields he/she is trying to fetch. The itil role should cover the tables and fields you mentioned, but if it is still not working you may need to dig into the ACLs to figure out what is causing the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 01:18 PM
rest_api_explorer role is not required if you are not using REST API Explorer. Author is using POSTMAN which is another REST Client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2018 06:42 AM