The CreatorCon Call for Content is officially open! Get started here.

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

Priya Shid1
Kilo Guru

Hi Shr,

 

Please check with your authentication details and user details which you are using as it is clearly showing use is not authorized.

 

Please mark if that helps you!!

Hi Priya,

When i used same credentials for other REST to create incident we got success message and record also created in other instance table.

I am assuming update set table might causing this issue. it's not accepting  to create a record in another system.

find_real_file.png

 

Regards,

Sri

Hi shri,

Please check with below cases,

i)401 Unauthorized Error indicates that the requested resource is restricted and requires authentication, but the client failed to provide any such authentication.It is working for other REST to beacause authentication you are using fulfilling the requirement

ii)In many cases the client may be sending a request that doesn’t contain any authentication information, which often leads to an unexpected 401 Unauthorized Error,

iii)In some scenarios, the server is still the network object that is producing the 401 Unauthorized Error, and returning it as the HTTP response code to the client, but it could be that the client is causing the issue in some way.

Hi Sri,

Not all tables are available to the REST API Explorer. Many tables that start with sys_ are forbidden because they may have performance or security impacts on the system.

That being said I was able to create a record in sys_update_set table using POST Method with admin credentials

Did you try with admin user?

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