REST API Error: "User is not authenticated" - Required to provide Auth information
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
