5
votes

I am not able to get removed users using a delta link retrieved from a previous call of https://graph.microsoft.com/v1.0/groups/delta

Explanations:

  1. I retrieve the groups using the query

https://graph.microsoft.com/v1.0/groups/delta

which returns the results correctly

Then I keep the delta link (example of delta link from JSON response: "@odata.deltaLink": "https://graph.microsoft.com/v1.0/groups/delta?$deltatoken=7VBZ66f3HT ... )

  1. I remove manually a user which belongs to a group to be sure the delta link works and returns the removed user id.

-> nothing at all is returned.

According to their documentation, it should work:

https://docs.microsoft.com/en-us/graph/delta-query-groups#deltalink-response

Moreover, when i do the same thing with delta user query, it works fine, the removed user is returned with user delta link.

Question:

Does anyone is experiencing this issue and did you find any solution?

1
How much time are you allowing between the removal and the delta check? It may be a replication thing, try waiting up to 15 minutes. - Zachafer
@Zachafer no it does not change anything (waiting for more than 1 hour and the result is the same) - Illyr
Any update for this issue? I was using security group. Have you tried to create a new goup? - Tony Ju
@Tony Ju I have done a video to understand what i exactly do (groups are security groups and users are created manually) - Illyr
I just noticed that you deleted the user directly. That's why you can only get removed user on user delta. If you remove the user from the group directly, you will get the removed user. - Tony Ju

1 Answers

1
votes

I didn't reproduce your issue on my side. I am using Microsoft graph explore to test the api.

When I accessed the final nextLink response, I got the deltaLink.

Then I removed two users from a group on Azure portal.

enter image description here

I can get the expected result when I access the deltaLink.

enter image description here

Update:

I just noticed that you deleted the user directly. That's why you can only get removed user on user delta. If you remove the user from the group directly, you will get the removed user.