REST API Error: "User is not authenticated" - Required to provide Auth information

SivaPrasadR3900
Tera Contributor

We are encountering the following error while making a REST API call:

{
"error": {
"message": "User is not authenticated",
"detail": "Required to provide Auth information"
}
"status": "failure"
}

We have already configured the service account with the following roles:

  • snc_internal
  • rest_api_explorer

Additionally, on the User record:

  • Identity Type is set to Machine
  • Integration User is set to True
Despite these configurations, the API call is still returning the authentication error.

Could anyone advise:

  • Whether additional roles are required for integration users?
  • Whether the Identity Type or Integration User settings could be affecting authentication?
  • What logs or troubleshooting steps should be checked to determine why the authentication information is not being recognized?

Any guidance would be appreciated.

Thanks

 

2 REPLIES 2

Bhavya11
Mega Patron

hi @SivaPrasadR3900 ,

 

Are you using Basic Auth or OAuth?.

 

 

For reference :

OAuth Access Token is Valid but API Returns HTTP 401 


Regards
BK
LinkedIn: https://www.linkedin.com/in/bhavyashree-karanth-55032a121
YouTube: https://www.youtube.com/@NowWithBhavya

Ankur Bawiskar
Tera Patron

@SivaPrasadR3900 

what type of authentication is being used?

which API you are hitting? OOTB Table API or Scripted REST API?

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