Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

User Not Authenticated Issue in Rest call

sri83
Tera Guru

Hi Team,

I am creating outbound Rest for creating the update set record in another system but i am getting the error as below.

find_real_file.png

I have given the required integration roles to that account and also used same credentials to another REST it's working and creating the record.

But when i used same credentials to this REST i am getting the error.

I wanted know on thing,is it possible to create update set record from one instance to another instance?

Regards,

Sri

7 REPLIES 7

MrMuhammad
Giga Sage

If the same credentials working fine for other REST calls then you might look into the roles assigned to your service account. As I can see you are trying to write data in update set table so you need admin or teamdev_user roles for create/write. Also, please make sure you are passing in sys_id of target record that you need to update.  

 

Please mark this correct & helpful if it answered your question.

Thanks & Regards,
Sharjeel

Regards,
Muhammad

Ankur Bawiskar
Tera Patron
Tera Patron

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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

Hitoshi Ozawa
Giga Sage
Giga Sage

If you can, try the method outlined in the following article using a curl command to see if you can post from a command line.

https://community.servicenow.com/community?id=community_question&sys_id=9e18f118dbdb6780fa192183ca96...