What will be the graph API Delta response for the below scenarios?

asked 2023-01-03T15:37:36.75+00:00
Nithish kumar 1 Reputation point

I'm using drives/{dirveId}/root/delta endpoint to get all the changes and I'm using "Prefer: deltashowremovedasdeleted, deltatraversepermissiongaps, deltashowsharingchanges" headers to get the sharedChanged notation.

I've a folder with 3 children. I have created an organization link for one children in the folder.

Scenario 1:
What will be the graph API response, If I create an Organization Link for the folder? Will the response only contains the root and the particular folder which has sharing changes? or the response will contain the root, the folder and the children which I've created an Org. link before (This is what I get for this scenario).

Scenario 2:
What will be the graph API response, If I delete an Organization Link for the folder? Will the response only contains the root and the particular folder which has sharing changes(This is what I get for this scenario)? or the response will contain the root, the folder and the children which I've created an Org. link before.

Why the responses vary as these two scenarios have permission related changes only for that particular folder?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
5,974 questions
Microsoft Graph Explorer API
Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
260 questions
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2023-01-10T07:02:43.667+00:00
    Gopinath Chennamadhavuni-MSFT 1,206 Reputation points Microsoft Employee

    Hi @Nithish kumar ,

    Thanks for reaching out.

    In both scenarios I am getting the same response in hierarchy i.e., root, folder and children from Graph API: drives/{dirveId}/root/delta. I have noticed only the scope parameter that is missing in delete organization response, but it is there in create organization link.

    277793-delta-ss.png

    Kindly check the graph call again and if still you are getting the difference in delta graph response, I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise a support ticket from http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

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