refresh token not appearing for microsoft teams spoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2025 06:22 PM
Hi,
I am using MS Teams Spoke as below. Also, tried with grant type as client credentials and given offline_access scope. I am getting access token that is expiring in an hour but not receiving refresh token. Am I missing something or Microsoft Team needs to provide on their end?
Thanks,
Archie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2025 07:09 AM
It depends. Check the ServiceNow product doc and follow the steps as mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2025 08:09 PM
whenever you get the access token and refresh token for the 1st time you know the lifespan of those
since you are consuming their endpoint I will suggest just before your actual API call always generate the access token and use that in 2nd API call in header
This way you are not concerned about refresh token etc is expiring
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?
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