Title: @microsoft.graph.sharedChanged annotation not set on folders in delta query with deltashowsharingchanges · Issue #2548 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: @microsoft.graph.sharedChanged annotation not set on folders in delta query with deltashowsharingchanges · Issue #2548 · microsoftgraph/msgraph-sdk-java
X Title: @microsoft.graph.sharedChanged annotation not set on folders in delta query with deltashowsharingchanges · Issue #2548 · microsoftgraph/msgraph-sdk-java
Description: Description When using the delta query API with Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges headers, the @microsoft.graph.sharedChanged OData annotation is only set on files, never on folders —...
Open Graph Description: Description When using the delta query API with Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges headers, the @microsoft.graph.sharedChanged OData annotation ...
X Description: Description When using the delta query API with Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges headers, the @microsoft.graph.sharedChanged OData annotation ...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/2548
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@microsoft.graph.sharedChanged annotation not set on folders in delta query with deltashowsharingchanges","articleBody":"## Description\n\nWhen using the delta query API with `Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges` headers, the `@microsoft.graph.sharedChanged` OData annotation is only set on **files**, never on **folders** — even when folders appear in the delta response with a `shared` facet.\n\nThis is an API behavior issue, not SDK-specific, but we're filing here as the docs repo has issues disabled.\n\n## Steps to reproduce\n\n1. Get a latest delta token:\n ```\n GET /drives/{drive-id}/root/delta?token=latest\n Headers: Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges\n ```\n\n2. Share a file located inside a folder hierarchy (e.g., `root/folder/sub-folder/sample.jpg`) with a specific user.\n\n3. Query delta with the token from step 1:\n ```\n GET /drives/{drive-id}/root/delta?token={token}\n Headers: Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges\n ```\n\n## Actual result\n\nThe response contains 4 items. Only the file has `@microsoft.graph.sharedChanged`, the parent folders do not:\n\n```\nFOLDER root — @microsoft.graph.sharedChanged: NOT PRESENT\nFOLDER folder — @microsoft.graph.sharedChanged: NOT PRESENT, shared: {scope: users}\nFOLDER sub-folder — @microsoft.graph.sharedChanged: NOT PRESENT\nFILE sample.jpg — @microsoft.graph.sharedChanged: true, shared: {scope: users}\n```\n\n## Expected result\n\nPer the documentation:\n\n> \"all items that appear in the delta query response due to permission changes have the @microsoft.graph.sharedChanged: True OData annotation\"\n\nParent folders that appear as hierarchy context (not due to their own permission change) should either:\n- Have `@microsoft.graph.sharedChanged` set when they are **directly** shared, OR\n- Be excluded from the response when they are only hierarchy context\n\nCurrently, folders **never** receive the annotation regardless of whether they were directly shared or appear as parent hierarchy. **This makes it impossible to distinguish parent folder noise from real folder permission changes.**\n\n## Additional testing\n\nTested all header combinations against the same delta token:\n\n| Headers | Result |\n|---|---|\n| deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges | 4 items, annotation only on file |\n| Same + hierarchicalsharing | Identical 4 items |\n| Same + deltaExcludeParent: true | Identical 4 items |\n| Only deltashowsharingchanges | Identical 4 items |\n| No Prefer headers | 0 items |\n\n## Environment\n\n- API version: v1.0\n- Authentication: Application permissions (client credentials)\n- Service: SharePoint Online","author":{"url":"https://github.com/o-shevchenko","@type":"Person","name":"o-shevchenko"},"datePublished":"2026-02-18T18:12:47Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/2548"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:77936446-a686-9560-7b0e-485e7ec9071d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9286:27EA3C:9A0B0:D377C:6AF6BA9F |
| html-safe-nonce | 8f0b2935acaad727bc6ef368e2409c60936f382ff78d839b40605f276a3868c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjg2OjI3RUEzQzo5QTBCMDpEMzc3Qzo2QUY2QkE5RiIsInZpc2l0b3JfaWQiOiI0NTI1MTkzOTc3NDA1MDI5MDIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a921ae4bb4b2bf8d65679033ac7d3e23c6d52895d07c8768e85e003607fb5359 |
| hovercard-subject-tag | issue:3959144945 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/2548/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ca60ff163fa173d9d64a18ecf9b6275b5e324fb562582c8a44e17372868dfa1/microsoftgraph/msgraph-sdk-java/issues/2548 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ca60ff163fa173d9d64a18ecf9b6275b5e324fb562582c8a44e17372868dfa1/microsoftgraph/msgraph-sdk-java/issues/2548 |
| og:image:alt | Description When using the delta query API with Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges headers, the @microsoft.graph.sharedChanged OData annotation ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | o-shevchenko |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8dfae1499400ee498ab0f86538d1c034e6c1b4f51c63ecade775c3b0894e3379 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ee168845eb2be91203b179104ac9977fe4ea69a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width