Permissions removal propogated to children with unique permissions but not in delta

Abin Simon 0 Reputation points
2024-05-20T11:26:09.5366667+00:00

Similar issue: https://learn.microsoft.com/en-us/answers/questions/1001308/delta-query-behavior-on-drives-with-removing-user. Posting again as that was in 2022 and the issue was not happening at least in the last year and only reappeared recently.


2 issues:

  • When a user is remove from a folder, it propagates to children with unique permissions
  • The permission changes on the children are not reflected in the delta query when calling a deltaLink got from previous run.

Minimal rerpo for permission not being available in delta url:

  • Create a folder and a file within it
  • Add/Remove permission from child file to make it have unique permission
  • Add a user to the parent folder
  • Call /delta and get delta.nextLink
  • Remove permission from parent folder
  • Call link got from delta.nextLink (you'll see the child file is not present even though the permissions for it was changed)

The delta url is called with Prefer: deltashowremovedasdeleted,deltatraversepermissiongaps,deltashowsharingchanges,hierarchicalsharing header as suggested in the docs both the times. The problem only happen on the first the user is deleted and work on subsequent deletions.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,216 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,136 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 10,560 Reputation points Microsoft Vendor
    2024-05-21T05:20:48.2033333+00:00

    Hi,

    I suggest you post a new thread in Microsoft Tech Community:

    https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



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.