The CreatorCon Call for Content is officially open! Get started here.

Can anyone help with the error message "User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_grant, Invalid refresh token: "

PGhate
Tera Guru

Hello All,

When we check in manage tokens it can be  seen that the refresh token has not expired but while attempt a REST call we are getting following error:

User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_grant, Invalid refresh token: 

 

Can someone help with what could the issue be?

8 REPLIES 8

Hi,

I haven't used it much

But you will have to update the credentials of the user in the OAuth profile configuration

Please try to test the same from Postman once

Regards
Ankur

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

Hello Ankur,

Credentials were changed but tokens were re-generated using new credentials not sure what is the missing link since it throws the expiry error quite often that expected.

To add to this if I re-generate the token it works perfectly for the day but the next day it would show as invalid.

 

Thanks

Hi,

not much sure on this then.

What happens when you consume the actual endpoint? Does it get valid token and the API is successful?

Regards
Ankur

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

Mohammed Saad S
ServiceNow Employee
ServiceNow Employee

Hello All,

Were you able to find a solution to this error? I have faced a similar issue recently.