- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
I have created a record in Application Registry 3 months back and I have,
Client ID
Client Secret
Token URL - https://<company>test.service-now.com/oauth_token.do
I want to get the access token and I am using Postman but, I am getting this error although it was working in the past.
Error:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
so what got changed?
you must be using some User credentials for getting the token, is that user active and not locked out?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Are these details not enough for getting the access token ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
what's the grant type you are using?
how are you testing? from postman?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
To resolve this error, you need to enable the Client Credentials grant type at the system level and explicitly assign an integration user to your OAuth application in the App Registry.
Do the following steps /validate your implemented steps as per KB.
Refer KB: KB1645212 How to configure Client Credentials grant type for inbound OAuth
Enable the Client Credentials grant type
- Go to System Properties > All Properties.
- Select New.
- Complete the following fields:
- Name: glide.oauth.inbound.client.credential.grant_type.enabled
- Type: true | false
- Value: true
- Select Save.
Configure the OAuth application
- Go to System OAuth > Application Registry.
- Select New.
- Select Create an OAuth API endpoint for external clients.
- Enter a name for the application.
- In the Default Grant Type field, select Client Credentials.
- In the OAuth Application User field, select the integration user to associate with this application.
- Select Save.
Test the configuration
To verify the configuration, use Postman or an equivalent API testing tool to request an access token using the Client Credentials grant type.
Related Links
Refer to the documentation below for more information:
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti