OAuth Access or Refresh tokens are not available. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token.

Gouthami_T
Kilo Contributor

While integrating Office 365 into Service Now we are getting  error "OAuth Access or Refresh tokens are not available. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token" could you please help how to resolve the above issue.

find_real_file.png

10 REPLIES 10

Hi Gouthami,

Please try after below changes to the fields:

1) Oauth API Script : OAuthUtilClient

2) Send Crednetials : In Request Body

Thanks,
Gaurav

@Gouthami_T @Gaurav Sharma11 - Hi did you ever find a solution for this? we are facing the same issue

Kalaiarasan Pus
Giga Sage

Different ways of fixing this can be found here. Please take a look.

https://community.servicenow.com/community?id=community_question&sys_id=5b544769dbd8dbc01dcaf3231f96...

harishdasari
Tera Guru

Hi Gouthami,

You have given grant type as "authorization code", are you sure this the correct Grant type?, why I am asking this question is because you have given Send credentials as basic Authorization header in the application registry. if the grant type is authorization code then we should not give that send credentials.

And one more thing is you have to provide the authorization URL if the grant type is Authorization code, otherwise, it will not generate the OAuth token.

find_real_file.png

Hope this is Helpful.

Thank you.

Subhadip Saman1
Mega Expert

Hi,

Please ensure that you provide the redirect url which is available in Application Registry > OAuth Setting to O365. Because even if your SeviceNow OAuth settings are correct, if the redirect URL is not mentioned in O365 settings, ServiceNow wont receive the Authorization token, which will be used in the subsequent POST calls by ServiceNow to get the Access Token.

Please check it and comment.

Thanks,

Subhadip