nguyen.huu.duy
nguyen.huu.duy

Reputation: 39

Azure Graph API does not return newly updated data

Precondition:

  1. Admin of Azure AD goes to azure portal to change/update user data such as First Name from Test 1 to Test 2.
  2. Call graph api: https://graph.windows.net/tenant/users?api-version=1.6 immediately.
  3. Do nothing and wait for about 20-30s then call above graph api again.

Actual:

My question is why azure does not return newly updated data on step 2 and how to bypass and immediately get the newly data after updating from azure portal.

Upvotes: 1

Views: 1155

Answers (1)

Shawn Tabrizi
Shawn Tabrizi

Reputation: 12434

Azure AD is a large behemoth of a system. There are multiple data centers around the world, each with copies of the data; and in order to ensure that we give you the absolute best performance we may route different calls through different sources to different data centers.

My guess is that because you are using one tool to do the update, and another tool to do the read, you are seeing propagation delay between the actual source of authority for those two systems at the time of the call.

If you made the update and read call with using the same service, I believe you would not see this problem.

Upvotes: 0

Related Questions