当我尝试通过增量端点吸引用户时:
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
属性时,已重现该问题。