refresh token not appearing for microsoft teams spoke

archie5
Tera Expert

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?

archie5_0-1744852806837.png

Thanks,

Archie

6 REPLIES 6

It depends. Check the ServiceNow product doc and follow the steps as mentioned.

Ankur Bawiskar
Tera Patron
Tera Patron

@archie5 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader