Delta api does not return "@microsoft.graph.sharedChanged": true for SharePoint drives

Kaustubh Nangare 30 Reputation points
2024-08-19T12:17:14.8833333+00:00

Hi,

I want to scan drive to check for permission changes on files and folders, in delta api documentation it is mentioned that "@microsoft.graph.sharedChanged": true will be returned for items having permission changes. Request url and headers are as per below
Request : https://graph.microsoft.com/v1.0/sites/<site_id>/drives/<drive_id>/root/delta?token=<delta_token>
Header : prefer: hierarchicalsharing,deltashowsharingchanges,deltashowremovedasdeleted,deltatraversepermissiongaps
But that does not seem to return sharedChanged header for most of the cases. I am using delegated permissions here. Other CRUD cases on items seem to work okay with delta APIs.

Thanks.

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
{count} vote

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.