The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to grant read access to Task table via REST API?

mkader
Kilo Guru

Hello,

We have a user requesting read access to the Task table via REST API. How can this be achieved? Our task table is already flagged to true for "Allow access to this table via web services".

find_real_file.png

He also mentioned he only needs to send GET requests to pull data out of ServiceNow. 

Thanks!

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Just set up a user account, web service access only, and add a role which can read the task table.

The you could use an Endpoint like:
https://your-instance.service-now.com/api/now/table/task

You can also add parameters, to get a certain number of records, only certain fields, apply a query, etc.. Play around with this using the REST API Explorer on your instance.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

8 REPLIES 8

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Just set up a user account, web service access only, and add a role which can read the task table.

The you could use an Endpoint like:
https://your-instance.service-now.com/api/now/table/task

You can also add parameters, to get a certain number of records, only certain fields, apply a query, etc.. Play around with this using the REST API Explorer on your instance.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

@Mark Roethof - Thanks for your response. The user currently has access to the task table, so as long as he uses the end point he should be good? Also, how do you give web service access only?

Thanks!

Indeed, in combination with the image you already showed yourself: the Allow access to this table via web services.

On the user record, checkbox "Web service access only". This will prevent the user that you specifically use for the integration, to log in to the GUI.

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Does this mean the user can only access ServiceNow via web services?