- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 12:06 AM
Hi Team,
what kind of access/role we need to connect ServiceNow api. for example, to use the below url which kind of access/role we need to get.
GET https://instance.service-now.com/api/now/v1/table/incident
PUT https://instance.service-now.com/api/now/v1/table/incident/{sys_id}?
Here I need to have an access/role for both the operation ie., GET and PUT.
Regards,
Bala N
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 12:18 AM
reason : you are using get method , it means all the records you can fetch, minimum ITIL role required to fetch the details. same for put method, minimum itil role required to update any incident record.
so in-short itil role is enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 01:36 AM
It is about to read and update sctask table.
Regards,
Bala N
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 02:37 AM
Hi,
I would recommend using scripted rest api; The reason being if you use GET method of OOB table API; it would show all the table data which is not recommended
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
05-14-2020 02:43 AM
can you add more details what exactly are you trying to accomplish here
you can use table API and specify the sc_task table to get the catalog task details .
have you checked the link which i had shared , to solve your postman error ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 05:01 AM
My requirement is I have an access to ServiceNow GUI. There I could do CURD operation over the ServiceNow GUI application. The same I'm tring to do using RestAPI as well for that I am using the below RestAPI url to Get the Service catalog ticket details.
https://XXXXXX.service-now.com/api/now/v1/table/sc_task?sys_class_name=sc_task
And I'm passing the same credentials which I used for ServiceNow GUI application in header.
But the response I'm getting is "User not Authenticated" which you can refer from my previous comment screenshot.
And I referred your blog and it is not about postman error the same error I'm getting on code as well.
Regards,
Bala N

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 05:18 AM
how are you testing your code ? can you paste your code ?