Refresh token for msads.manage repeatedly fails with AADSTS70000 “grant is expired”

Ashmit Mehta 5 Reputation points
2026-11-20T15:51:11.3166667+00:00

We’re a Microsoft Advertising API partner (confidential client, auth code flow, scope https://ads.microsoft.com/msads.manage). For one customer login, refresh-token redemption has started failing with:

invalid_grant - AADSTS70000: The user could not be authenticated as the grant is expired. The user must sign in again.

  • The grant was originally created in Mar 2022 and refreshed regularly until it first failed on 22 Jul 2026. The user signed in again on 23 Jul and it worked, then it failed again from about 31 Oct 2026 and is still failing.
  • The customer reports no password change or unlink on our side. We store each newly issued refresh token after every successful refresh.
  • We tested reuse on our own logins: superseded tokens, parallel redemption and 100+ grants all stay valid, so concurrent use doesn’t seem to be the cause.

Recent failures:

  • Trace ID 8c7f62a8-bc76-4b28-bfb4-b58cbf357902, Correlation ID 4473171c-4a30-4b12-a100-47957e1db508, 2026-11-20 06:15:58Z
  • Trace ID d7c19670-b789-45f5-be96-eb8371769501, Correlation ID 69e9c0db-5700-4285-a22f-bc92dfd50e1c, 2026-11-19 03:39:52Z
  • Trace ID a35a7a4c-e407-4293-9485-1963421ecd00, Correlation ID d7674577-78ce-4e6c-adb5-5d4b321204d1, 2026-10-31 10:11:44Z

Questions:

  1. What causes this generic AADSTS70000 for msads.manage, as opposed to the specific codes (50173, 70043, 700082)? Is it specific to personal Microsoft accounts?
  2. Can you see from these Trace IDs why the grant was refused (revocation, password reset, security event, policy)?
  3. Is there anything we should change in how we redeem refresh tokens?We’re a Microsoft Advertising API partner (confidential client, auth code flow, scope https://ads.microsoft.com/msads.manage). For one customer login, refresh-token redemption has started failing with: invalid_grant - AADSTS70000: The user could not be authenticated as the grant is expired. The user must sign in again.
    • The grant was originally created in Mar 2022 and refreshed regularly until it first failed on 22 Jul 2026. The user signed in again on 23 Jul and it worked, then it failed again from about 31 Oct 2026 and is still failing.
    • The customer reports no password change or unlink on our side. We store each newly issued refresh token after every successful refresh.
    • We tested reuse on our own logins: superseded tokens, parallel redemption and 100+ grants all stay valid, so concurrent use doesn’t seem to be the cause.
    Recent failures:
    • Trace ID 8c7f62a8-bc76-4b28-bfb4-b58cbf357902, Correlation ID 4473171c-4a30-4b12-a100-47957e1db508, 2026-11-20 06:15:58Z
    • Trace ID d7c19670-b789-45f5-be96-eb8371769501, Correlation ID 69e9c0db-5700-4285-a22f-bc92dfd50e1c, 2026-11-19 03:39:52Z
    • Trace ID a35a7a4c-e407-4293-9485-1963421ecd00, Correlation ID d7674577-78ce-4e6c-adb5-5d4b321204d1, 2026-10-31 10:11:44Z
    Questions:
    1. What causes this generic AADSTS70000 for msads.manage, as opposed to the specific codes (50173, 70043, 700082)? Is it specific to personal Microsoft accounts?
    2. Can you see from these Trace IDs why the grant was refused (revocation, password reset, security event, policy)?
    3. Is there anything we should change in how we redeem refresh tokens?
Microsoft Advertising API
Microsoft Advertising API

A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.

0 comments No comments

1 answer

Sort by: Most helpful
  1. MS Advertising - Chris 0 Reputation points Microsoft External Staff Moderator
    2026-11-20T18:30:10.65+00:00

    Hello Ashmit Mehta,

    Thank you for providing the detailed information, including the Trace IDs and Correlation IDs.

    Based on the information you shared and the Microsoft Advertising OAuth documentation, a possible reason for this behavior is that the refresh token associated with the affected user was invalidated by Microsoft's authorization service.

    Although refresh tokens are generally long-lived, they are not guaranteed to remain valid indefinitely. Microsoft states that refresh tokens can be invalidated at any time, even if they are being refreshed regularly and the application is correctly storing the most recently issued refresh token. This may occur if the user changes their password, removes a trusted device, revokes the application's permissions, or if Microsoft determines that the user must grant consent to the application again.

    As a result, the authorization service may return the following error:

    invalid_grant - AADSTS70000: The user could not be authenticated as the grant is expired. The user must sign in again.

    Based on the details provided, there is no clear indication that your refresh token redemption logic is incorrect. Since the issue appears to be isolated to a specific user account and your implementation follows the recommended OAuth flow by storing the latest refresh token after each successful redemption, it is possible that the user's grant was invalidated due to an account-specific authentication, security, or consent-related event.

    Regarding the Trace IDs and Correlation IDs, I am unable to determine the exact reason for the grant rejection from the information provided. However, I can coordinate with our Engineering Team to investigate the specific authentication events associated with the Trace IDs and Correlation IDs you supplied.

    Additionally, I will forward your other questions regarding the AADSTS70000 error behavior and refresh token handling recommendations to our Engineering Team for further clarification and guidance.

    To proceed with the escalation, please check your private messages, as I will need to collect some additional information from you before I can engage our Engineering Team for further review.

    I look forward to your response.

    Get access and refresh tokens

    Kind regards,
    Chris | Microsoft Advertising Support Specialist | 1-800-518-5689

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.