Which access/role we need to connect Service Now API?

Balakrishnan N
Kilo Contributor

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

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

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. 

View solution in original post

30 REPLIES 30

Harsh Vardhan
Giga Patron

technically itil role to perform get and put method.

 

 

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

All the ACLs on the table is evaluated. For example: if you opened the incident then you can read that, if you are caller you can read that. If you have itil then you can read that.

If you have custom ACl then they should pass.


Rest harsh said it.

Thanks,
Ashutosh

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Bala,

those are OOB table API endpoints:

first of all user who is consuming this endpoint should be valid user in instance; they can hit that endpoint; but ACLs on that table will allow/block based on that user's role

please check below links:

https://community.servicenow.com/community?id=community_question&sys_id=8ceb9976dbb6e780afc902d5ca96...

https://docs.servicenow.com/bundle/london-application-development/page/integrate/custom-web-services...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Harsh Vardhan
Giga Patron

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.