Reputation: 341
I am using the Azure Active Directory Group API for my tenant to list all the groups. I am using GET DELTA
https://learn.microsoft.com/en-us/graph/api/group-delta?view=graph-rest-1.0&tabs=http
According to the documentation, this call when I make for the first time should give me all the meta-data related to groups and in the end it should give me a "delta-link". This delta link when called later would just give the changes that have been made in the meta-data of group since then.
However during the first call only when I should be getting all the meta-data, I am getting resources with annotations @removed. According to my understanding I should get the changes only when I call the delta link and not for the first time when I am getting all the data
I wanted to know if this is a feature (Microsoft returns @removed for groups which were removed let's day 10 days ago). Or this is a bug?
Upvotes: 2
Views: 408
Reputation: 11401
I have tested this in my Lab and its same for me as well while making a call GET /groups/delta
it provides me with a nextlink and it also provides the users I had removed few days back from a group as well.
So, the remove made earlier are shown first response and in nextlink which is expected as per the Microsoft documentation : The @removed object can be returned in the initial delta query response and in tracked (deltaLink) responses and the new changes that were made after the delta call can be tracked in the delta link response.
Reference: Use delta query to track changes in Microsoft Graph data - Microsoft Graph | Microsoft Docs
group: delta - Microsoft Graph v1.0 | Microsoft Docs
Sample testing using Graph explorer:
Upvotes: 1