Expiry details for the DeltaToken Used in Delta query to track changes

Krishna 0 Reputation points
2024-01-02T05:12:45.4066667+00:00

We are currently using Delta Query to track the changes of groups and users.

We are using delta token either by getting the latest token or by following the 2 step procedure mentioned in the guidelines below.

https://learn.microsoft.com/en-us/graph/delta-query-overview

https://learn.microsoft.com/en-us/graph/delta-query-groups?tabs=http

We are able to get the track changes successfully using above two methods.

Following are the queries which we have w.r.t to Delta Token's

  1. What is the expiry date for the delta token we got from latest token api ($deltaToken=latest) ?
  2. What is the expiry date for the delta token we got from 2 step procedure (@odata.deltaLink) ?
  3. is there any way to check if the token that we have got is expired or active ? any api ?
  4. If we are using any expired token do we get any error while using it in API's or SDK's

In one of the article

https://devblogs.microsoft.com/microsoft365dev/duration-of-change-tracking-tokens-for-identity-and-education-resources/#:%7E:text=Effective%20today%2C%20delta%20links%20for,of%20thirty%20(30)%20days.

we see that expiration of delta token is 7 days.

But we did little bit experimenting and tried to use token which is 2 weeks old and it was working

So we needed clarity on expiration of deltatoken that we get in both the methods.

Can you please help us on this regard on getting the answers.

-Thanks

Krishna

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,686 questions
{count} votes

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.