Microsoft图形用户增量-经理问题

时间:2020-09-17 09:32:00

标签: microsoft-graph-api

当我尝试通过增量端点吸引用户时:

T

返回的响应将包含一些定义了manager属性的用户,如预期的那样:

Computable<T>

但是,当我随后查询返回的https://graph.microsoft.com/v1.0/users/delta?$select=id,displayName,manager 以获取第二页时,将返回同一用户集作为第一页,而这次没有任何管理者。另请注意,{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(id,displayName,manager)", "@odata.nextLink": "https://graph.microsoft.com/v1.0/users/delta?$skiptoken=[token]", "value": [ { "displayName": "user1", "id": "id1" }, { "displayName": "user2", "id": "id2", "manager@delta": [ { "@odata.type": "#microsoft.graph.user", "id": "managerId1" } ] }, { "displayName": "user3", "id": "id3" }, // etc ] } 值现在也已更改:

nextLink

当我删除@odata.context属性时,只选择了{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users", "@odata.nextLink": "https://graph.microsoft.com/v1.0/users/delta?$skiptoken=[token]", "value": [ { "displayName": "user1", "id": "id1" }, { "displayName": "user2", "id": "id2" }, { "displayName": "user3", "id": "id3" }, ... etc ] } displayName时,分页似乎可以正常工作:

id

manager中也包含https://graph.microsoft.com/v1.0/users/delta?$select=id,manager 属性时,已重现该问题。

0 个答案:

没有答案