Getting same REFRESH_TOKEN for different accounts

Francisco Pellegrini 20 Reputation points
2024-06-13T17:33:18.68+00:00

Hi,

We're using the process described in https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http in order to get connection for Outlook365. The problem is, thee different accounts applied for User consent experience and the data returned for the three different accounts had the same refresh_token, so when asking a new token there's no way to specify which account we're asking for. Could you please clarify us such scenario and how to proceed with the same refresh_token in order to get new bearer tokens for three different accounts?

Thanks in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 42,046 Reputation points
    2024-06-14T02:57:42.5666667+00:00

    Hi @Francisco Pellegrini

    Refresh tokens are unique to each user and cannot be applied to multiple users. Please try clearing the cache for the current environment and try again.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Francisco Pellegrini 20 Reputation points
    2024-06-18T19:54:47.89+00:00

    Hi, we cleared cache and now it worked fine - we've got different refresh tokens for each account. Thank you!

    0 comments No comments

Your answer

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