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

It is about to read and update sctask table.

 

Regards,

Bala N

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

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

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 ?

@Harshvardhan 

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

how are you testing your code ? can you paste your code ?