{"id":4934,"date":"2020-07-03T11:19:51","date_gmt":"2020-07-03T19:19:51","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=4934"},"modified":"2020-07-03T11:19:51","modified_gmt":"2020-07-03T19:19:51","slug":"duration-of-change-tracking-tokens-for-identity-and-education-resources","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/duration-of-change-tracking-tokens-for-identity-and-education-resources\/","title":{"rendered":"Duration of change tracking tokens for identity and education resources"},"content":{"rendered":"<p>Change tracking uses <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/delta-query-overview\">delta queries<\/a> to let applications discover newly created, updated, or deleted entities without performing a full read of the target resource with every request.<\/p>\n<h3>Update to delta link lifetime<\/h3>\n<p>Effective today, delta links for identity and access and education resources have a lifetime of seven (7) days instead of the previous lifetime of thirty (30) days.<\/p>\n<p>If you obtained a delta link from a previous delta request and query Microsoft Graph with this delta link more than seven days after the initial query, you will receive a BadRequest response with the error code \u201csyncStateNotFound\u201d and the following error message: \u201cThe sync state generation is not found. The delta token is expired and data must be synchronized again.\u201d<\/p>\n<p>To fix that error, simply start a full synchronization again, and update your code to ensure that your application will query Microsoft Graph before the deadline of seven days.<\/p>\n<h3>Affected resources<\/h3>\n<p>The following resources are affected by the change of delta link lifetime.<\/p>\n<h4>Identity and access resources<\/h4>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/application-delta\">applications<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/administrativeunit-delta\">administrative units<\/a> (preview)<\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/directoryobject-delta\">directory objects<\/a> (preview)<\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/directoryrole-delta?view=graph-rest-1.0\">directory roles<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/group-delta?view=graph-rest-1.0\">groups<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/orgcontact-delta?view=graph-rest-1.0\">organizational contacts<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/oauth2permissiongrant-delta?view=graph-rest-beta\">OAuth2PermissionGrants<\/a> (preview)<\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/user-delta?view=graph-rest-1.0\">users<\/a><\/li>\n<\/ul>\n<h4>Education resources<\/h4>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/educationclass-delta\">Classes<\/a> (preview)<\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/educationuser-delta\">education users<\/a> (preview)<\/li>\n<\/ul>\n<h3>Next steps<\/h3>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/delta-query-overview\">Use delta query to track changes in Microsoft Graph data<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Effective today, delta links for identity and access and education resources have a lifetime of seven (7) days instead of the previous lifetime of thirty (30) days.<\/p>\n","protected":false},"author":69092,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,11],"tags":[],"class_list":["post-4934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-office-add-ins"],"acf":[],"blog_post_summary":"<p>Effective today, delta links for identity and access and education resources have a lifetime of seven (7) days instead of the previous lifetime of thirty (30) days.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69092"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=4934"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4934\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=4934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=4934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=4934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}