Azure active directory Office 365多地理位置-从Azure Active Directory获取用户的PreferredDataLocation属性时出现问题

Azure active directory Office 365多地理位置-从Azure Active Directory获取用户的PreferredDataLocation属性时出现问题,azure-active-directory,microsoft-graph-api,microsoft-graph-sdks,Azure Active Directory,Microsoft Graph Api,Microsoft Graph Sdks,我正在尝试从Azure Active Directory获取用户的首选目录位置(PDL) 我使用了Graph v1.0,但在响应中未收到PDL值: https://graph.microsoft.com/v1.0/users/{upn}?$select=preferredDataLocation https://graph.microsoft.com/beta/users/{upn}?$select=preferredDataLocation 但当我使用Graph Beta时,我会在响应中收

我正在尝试从Azure Active Directory获取用户的
首选目录位置
(PDL)

我使用了Graph v1.0,但在响应中未收到PDL值:

https://graph.microsoft.com/v1.0/users/{upn}?$select=preferredDataLocation
https://graph.microsoft.com/beta/users/{upn}?$select=preferredDataLocation
但当我使用Graph Beta时,我会在响应中收到PDL值:

https://graph.microsoft.com/v1.0/users/{upn}?$select=preferredDataLocation
https://graph.microsoft.com/beta/users/{upn}?$select=preferredDataLocation
这是否意味着Microsoft Graph v1.0不支持获取PDL

我还尝试使用MicrosoftGraphSDK,但没有公开用于获取PDL的属性


有没有一种方法可以使用MS Graph SDK获取PDL?

只有
/beta
端点才返回/支持
用户的
PreferredDataLocation
属性。由于SDK目前只支持生产API,
PreferredDataLocation
未在对象模型中公开

一旦该特性进入v1.0,SDK的后续版本就应该包括它。如果在新的SDK构建中存在不合理的延迟,您也可以请求添加它。从:

将新功能添加到库中时 生成是手动过程的一部分,该过程在向图形中添加重大更改或一组更改后发生。这可能包括:

  • Graph的v1.0版增加了一个新的工作负载(Microsoft团队、批处理等)
  • 有一个重要的附加功能(增量查询等)
然而,这是根据具体情况进行评估的。如果库缺少您希望使用的v1.0图形功能,请


现已在beta SDK中提供: