User not authenticated, required to provide auth information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2023 10:39 PM
Hello team,
I have generated an access token successfully with my client id and client secret using grant type password. With this access token, when I go to call the SCIM API to create the user or to fetch the users, it throws the following error object:
I don't think it's due to username or password, as I have generated access token successfully with these. Should I give any extra permissions.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2023 01:42 PM
I am having the same issue. Were you able to resolve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2023 10:00 PM
Hello @mtotty ,
Yes, the issue was resolved. If you making an API call using the client id and client secret of an application, then first you need to make sure that the rest access policies are configured for that application. ServiceNow provides us a pre-configured application with name "SCIM API". Please use the client id and client secret of that application and if you want use your custom application then you need to first configure rest access policies first.
API Access Policies -> Rest API Access Policies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 10:01 PM
Thanks for the useful information. This is the only thread I found with the correct solution. I see many people have this problem, but no one told the root cause, even in the production document. By default, there is no Basi Auth in access policies, OAuth token is not there either. That's the reason why the bearer token can be generated using password type but can't be used in table API, basic auth is due to the same reason. Thanks for the hint. It is very useful for people who are only working on data integration but not familiar with ServiceNow.