The provided grant has expired due to it being revoked - Email outgoing / incoming issue

The provided grant has expired due to it being revoked - Email outgoing / incoming issue

Couple of issues related to Refresh tokens expiry 

Error trace :

Caused by: java.lang.Exception: {"error_description":"XXTTHHSS: The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '2023-04-21T04:53:58.1623788Z' and the TokensValidFrom date (before which tokens are not valid) for this user is '2023-06-15T11:15:43.0000000Z'.\r\nTrace ID: b360e4c1-f5c9-435b-a008-520839e40100\r\nCorrelation ID: AXVEDSDSDSDSDSDDSSFf\r\nTimestamp: 2023-07-12 05:48:55Z","error":"invalid_grant","error_uri":"https:\/\/login.microsoftonline.com\/error?code=50173"}
at com.manageengine.servicedesk.authentication.oauth.util.OauthUtil.refreshAccessToken(OauthUtil.java:247)

Solution:

Saving the outgoing settings again to resolve the issue.

b) Mail fetching stopped :

[10:26:27:332]|[08-04-2023]|[com.manageengine.servicedesk.authentication.oauth.util.OauthUtil]|[INFO]|[639]: Access Token has expired. Initiating Refresh Access Token| [10:26:28:151]|[08-04-2023]|[SYSERR]|[INFO]|[639]: java.lang.Exception: {"error":"invalid_grant","error_uri":"https:\/\/login.microsoftonline.com\/error?code=50173"}| [10:26:28:151]|[08-04-2023]|[SYSERR]|[INFO]|[639]: at com.manageengine.servicedesk.authentication.oauth.util.OauthUtil.refreshAccessToken(OauthUtil.java:286)|

Solution :

Please login to your Azure portal and click Certificates & secrets > New client secret. On the displayed page, provide a Description of the client's secret. Under Expires, choose the validity of the client secret as 24 months and click Add.

Now apply the same value under ServiceDesk Plus mail server settings.
                  New to ADManager Plus?

                    New to ADSelfService Plus?