用户delta上的自定义属性调用Microsoft Graph

时间:2018-03-20 07:39:10

标签: azure-active-directory microsoft-graph

我有一些自定义属性配置为与内部部署的Active Directory同步。这些属性正确同步,可以通过以下对Microsoft Graph的调用来访问。

https://graph.microsoft.com/v1.0/users?$select=id,displayName,givenName,surname,mail,jobTitle,department,companyName,mobilePhone,businessPhones,officeLocation,accountEnabled,extension_<GUID_REMOVED>_ipPhone,extension_<GUID_REMOVED>_division

{
  "id": "<GUID_REMOVED>",
  "accountEnabled": true,
  "businessPhones": [],
  "companyName": "Foobar",
  "department": "IT",
  "displayName": "Foo Bar",
  "givenName": "Foo",
  "jobTitle": "Labourer",
  "mail": "foo.bar@foobar.com",
  "mobilePhone": null,
  "officeLocation": "Site",
  "surname": "Foo",
  "extension_<GUID_REMOVED>_division": "Group"
}

如果我使用delta查询进行相同的调用

https://graph.microsoft.com/v1.0/users/delta?$select=id,displayName,givenName,surname,mail,jobTitle,department,companyName,mobilePhone,businessPhones,officeLocation,accountEnabled,extension_<GUID_REMOVED>_ipPhone,extension_<GUID_REMOVED>_division

{
  "accountEnabled": true,
  "businessPhones": [],
  "companyName": "Foobar",
  "department": "IT",
  "displayName": "Foo Bar",
  "givenName": "Foo",
  "jobTitle": "Labourer",
  "mail": "foo.bar@foobar.com",
  "mobilePhone": null,
  "officeLocation": "Site",
  "surname": "Bar",
  "id": "<GUID_REMOVED>"
}

自定义属性未显示在结果中。

有人可以帮忙吗?这是有原因还是错误?

1 个答案:

答案 0 :(得分:2)

这是Delta查询的限制。来自Known Issues documentation

  

Delta查询

     
      
  • 跟踪对关系的更改时,有时会错误地返回OData上下文。
  •   
  • 使用$ select语句不返回架构扩展(旧版),但不返回$ select。
  •   
  • 客户端无法跟踪对打开扩展程序或已注册架构扩展程序的更改。
  •