- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi Team,
Could you please provide your support to generate the access token for SCIM integration with the grant type as client credentials in ServiceNow?
Please check and provide your inputs.
Thanks & Regards
Rahul Chander
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16m ago
Refer below link for more details on different OAuth grant types
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1647747
Use below article to configure client credentials grant type in ServiceNow and test in Postman,
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1645212
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
59m ago
So from ServiceNow you are calling SCIM integration and want to get Access token?
You can use script to obtain the refresh and access token from script, script will vary based on grant type somewhat
refer below links
OAuth2.0: Get new Access Token from existing Refresh Token
How to Setup OAuth2 authentication for outbound RESTMessageV2 integrations
OAuth : Script to Automate Token Request
How to generate the access token once it is expired from Business Rule?
How to get Auth Token using script when grant type is Authorization code
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
32m ago
Hi,
Thanks for the response.
I am just trying to get the access token using oauth token with the grant type - client credentials. But am getting error as -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
28m ago
If you have setup OAuth in ServiceNow and SCIM is using ServiceNow provided OAuth, use below
1. Create OAuth configuration in ServiceNow. Make a note of client ID and client secret to be used in API call
2. Create integration user with web service access to be used for initial OAuth call
3. Make a API call from SCIM to get access token & refresh token. Once refresh token is available, use it to get access token and refresh token for subsequent calls
Please see below for sample API calls from Postman and process is similar for any third-party tool using ServiceNow as OAuth Provider
OAuth Using Integration User Credentials [First time to get refresh token]
OAuth Using Refresh Token [subsequent calls once initial refresh token is fetched]
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
26m ago
Hi Bhuvan,
Thanks for the response. I am trying to set the grant type as client credentials. Could u pls provide ur inputs.