问题
While working with Microsoft Graph Explorer, I noticed that when you submit a groups delta request like https://graph.microsoft.com/beta/groups/delta, you will get a response with the @odata.nextLink available. However, when I follow the provided link, I start getting exactly the same set of groups as in the previous response with another @odata.nextLink leading to the endless recursion if I keep following the links. The expected behavior is to get @odata.deltaLink at some point but in never arrives in the responses received. I have 63 groups in my Azure environment.
Tried excluding members from the query but sending https://graph.microsoft.com/v1.0/groups/delta?$select=displayName. In this case, I get @odata.deltaLink on the second page after following @odada.nextLink once.
回答1:
ok , i figured it out how to solve the issue. When Delta changes returns groups that has more than 1000 members , then is returning the same data set but adding the rest of members. It seems that is an inifinite loop but really is bringing the rest of members. Then if you do a query with select without expanding members, then you avoids the infinite loop.
https://docs.microsoft.com/en-us/graph/delta-query-groups#paging-through-members-in-a-large-group
回答2:
Stack is the correct place to ask questions like this. Our github issues are to raise content issues, not asking how to use the API itself.
There is a specific doc that shows you how to get changes on the groups api here in our documentation https://docs.microsoft.com/en-us/graph/delta-query-groups
When you call you'll get the first results back.
GET https://graph.microsoft.com/v1.0/groups/delta?$select=displayName,description&$expand=members
Then rather than making this exact same call next time, you would call the @odata.nextLink that was returned in the response to request above which includes a skip token.
GET https://graph.microsoft.com/v1.0/groups/delta?$skiptoken=pqwSUjGYvb3jQpbwVAwEL7yuI3dU1LecfkkfLPtnIjvB7XnF_yllFsCrZJ
a third call, you would call the @odata.nextLink from the second response. The @odata.nextLink should be different bewtween these requests.
来源:https://stackoverflow.com/questions/55379873/microsoft-graph-api-groups-delta-query-never-returns-delta-query-infiinite-loop