Azure active directory AAD组增量查询不返回members@delta不再
我有一个客户端应用程序,它利用Microsoft Graph为某个AAD组获取增量更改 我的BVT发现了一个问题,当我调试时,我发现Graph请求没有返回Azure active directory AAD组增量查询不返回members@delta不再,azure-active-directory,microsoft-graph-api,Azure Active Directory,Microsoft Graph Api,我有一个客户端应用程序,它利用Microsoft Graph为某个AAD组获取增量更改 我的BVT发现了一个问题,当我调试时,我发现Graph请求没有返回members@delta不再收集,因此应用程序不会收到任何组成员身份更改 请求: { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups(id,displayName,mailNickname,onPremisesSecurityIdentifier
members@delta
不再收集,因此应用程序不会收到任何组成员身份更改
请求:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups(id,displayName,mailNickname,onPremisesSecurityIdentifier,groupTypes,securityEnabled,members())",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/groups/delta?$skiptoken=duo2tEVrL.............................-Ay-zlyuo2tEVrLOUh0PUTdXM",
"value": [
{
"displayName": "TestGroup-OneUser",
"mailNickname": "9a234b7e8ad-3",
"securityEnabled": true,
"id": "9f63ad39-xxxx-xxxx-xxxx-xxxxxxxxxx",
"members@delta": [
{
"@odata.type": "#microsoft.graph.user",
"id": "18e2a00c-xxxx-xxxx-a9a9-xxxxxxxxxxxxx"
}
]
}
]
}
https://graph.microsoft.com/v1.0/groups/delta?$expand=members&$select=id、displayName、mailNickName、onpremisesesecurityidentifier、groupTypes、securityEnabled&$filter=id eq'9f63ad39-xxxx-xxxx-xxxx-XXXXXXXXXXXXXXXX'
响应:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups(id,displayName,mailNickname,onPremisesSecurityIdentifier,groupTypes,securityEnabled,members())",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/groups/delta?$skiptoken=duo2tEVrL.............................-Ay-zlyuo2tEVrLOUh0PUTdXM",
"value": [
{
"displayName": "TestGroup-OneUser",
"mailNickname": "9a234b7e8ad-3",
"securityEnabled": true,
"id": "9f63ad39-xxxx-xxxx-xxxx-xxxxxxxxxx",
"members@delta": [
{
"@odata.type": "#microsoft.graph.user",
"id": "18e2a00c-xxxx-xxxx-a9a9-xxxxxxxxxxxxx"
}
]
}
]
}
知道发生了什么变化吗 您应该向$select添加
成员
,如下更改请求:
https://graph.microsoft.com/v1.0/groups/delta?$select=id,displayName,members&$filter=id eq '1068699c-044b-4846-b45a-4137e06a7ca2'
我不明白,看起来您在该响应中得到了成员资格的更改。这是它正常工作时的预期响应。我现在得到的答复没有“正确答案”members@delta“街区。我只得到了一般属性。好像我没有指定$expand=members。谢谢你的建议。我将更新请求并重试。但是根据查询参数$expand=members应该被使用吗?是否仍支持此参数?谢谢@Joyce看来$expand=成员现在不工作了。您可以在$select中包含成员。