- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 02:00 AM
Hi all,
Please offer support on the following situation:
I have set up the Knowledge Management REST API (I say I have done all the steps). When I try to 'POST' using a testing API tool to identify the Access Token for connection with a third-party application, I receive this error:
{
"error": {
"message": "User Not Authenticated",
"detail": "Required to provide Auth information"
},
"status": "failure"
}
The Service Account User is created, and has the necessary roles (I have created the sn_km_reader role and allocated it to the user), the snc_platform_rest_api_access role is assigned, and the knowledge role.
Note: The connection is set up to GET the knowledge management articles using the external application.
Please let me know if you have any suggestions for fixing this!
Thank you,
Daniel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 03:37 AM
As I dont know what API testing tool you use its hard for me to tell how its set up.
Postman for ex - then you set the auth method and enter the credentials - service account user name and password to be used when you integrate to ServiceNow - no matter the method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 10:55 AM
Hi Simon,
Yes, I'm using Postman too however I need to create a Service to Service connection.
Please see an article related to the steps that I've followed:
https://www.servicenow.com/community/developer-blog/oauth-2-0-with-inbound-rest/ba-p/2278926
I hope this will help!
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 02:27 AM
Hi,
As the error states:
"message": "User Not Authenticated",
"detail": "Required to provide Auth information"
This means that user name and password is either not set up in the source to be used to authenticate or is maybe its wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 03:00 AM
Hi Simon,
Thank you for your answer.
What do you mean that is not set up in the source to be used to authenticate?
The user is active and has the 'Web service access only' active (marked) with the following roles:
sn_km_reader
snc_platform_rest_api_access
knowledge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 03:37 AM
As I dont know what API testing tool you use its hard for me to tell how its set up.
Postman for ex - then you set the auth method and enter the credentials - service account user name and password to be used when you integrate to ServiceNow - no matter the method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 10:55 AM
Hi Simon,
Yes, I'm using Postman too however I need to create a Service to Service connection.
Please see an article related to the steps that I've followed:
https://www.servicenow.com/community/developer-blog/oauth-2-0-with-inbound-rest/ba-p/2278926
I hope this will help!
Daniel