ServiceNow API using Client credentials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 05:02 AM - edited 07-23-2025 05:04 AM
Hey.
I'm trying to to use the /oauth_token.do endpoint with client credentials:
grant_type=client_credentials
client_id+client+secret , and getting access denied. is it supported to authenticate with just client id+secret?
if i add the username+password it works. (grant_type=password)
but following the doc's its suppose to work with client id+secret alone. ->
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1645212
Anyone has any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 06:57 AM
Hi,
It works with client id and client secret.
Follow this documentation to make it work - https://www.servicenow.com/docs/bundle/xanadu-platform-security/page/integrate/authentication/concep...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 12:23 AM
Hi, thank you for your reply.
I followed the client credentials guide, created the system property:
But, when setting the app, I don't have the OAuth Application User field I should see according to the documentation.
Application Registries (what I use):
OAuth OICD Entity (I don't use that but I don't have it here as well):
Still getting access denied.
I'm using a dev account, maybe it's related?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 09:48 PM
Hi
Screenshots are not visible. Can you try to attach again and configure the Application registries form layout to add Oauth application user field