在用户/增量API中获取preferredDataLocation时无法/错误 [英] Unable/Error while getting preferredDataLocation in users/delta API

查看:66
本文介绍了在用户/增量API中获取preferredDataLocation时无法/错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考 https: //docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0 .

预期或期望的行为

参考 https: //docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0 .进行用户/增量API调用时,我们应该获取多地理位置的PreferredDataLocation

观察到的行为

无法在users/delta API中获得preferredDataLocation 使用的URL: https://graph.microsoft.com/v1.0/users/delta ?$ select = id,邮件,用户类型,userPrincipalName,accountEnabled,displayName,assignedPlans,preferredDataLocation

图片:邮递员请求中出现错误

与您的请求相对应的响应头:

日期-星期三,2019年7月3日07:25:2 request-id-1d42128-c88b-4e1c-9fd8-c6e0f7519a37 SPRequestGuid- 1d8dec9e-c071-0000-3f4a-597faa9ba2ef

复制步骤

使用图形令牌进行图形API调用 使用的URL: https://graph.microsoft.com/v1.0/users/delta ?$ select = id,邮件,用户类型,userPrincipalName,accountEnabled,displayName,assignedPlans,preferredDataLocation

https://graph.microsoft.com/v1.0/users/delta

不支持

解决方案

preferredDataLocation

您可以使用Microsoft Graph API Beta Version使用下面的API URL

https://graph.microsoft.com/beta/users?$select=id,mail,userType,userPrincipalName,preferredDataLocation

查看屏幕截图:

记住点:

  1. 如果未配置DataLocation,则必须对其进行配置 否则preferredDataLocation将显示为Null
  2. 您可以在这里看看如何配置数据位置

With reference to https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0.

Expected or Desired Behavior

With reference to https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0. while making user/delta API call we should get preferredDataLocation for multi geo

Observed Behavior

Unable to get preferredDataLocation in users/delta API URL used : https://graph.microsoft.com/v1.0/users/delta?$select=id,mail,userType,userPrincipalName,accountEnabled,displayName,assignedPlans,preferredDataLocation

Image: Error In Postman Request

Response headers corresponding to your request(s):

Date - Wed, 03 Jul 2019 07:25:2 request-id - 1d42128-c88b-4e1c-9fd8-c6e0f7519a37 SPRequestGuid - 1d8dec9e-c071-0000-3f4a-597faa9ba2ef

Steps to Reproduce

Make graph API call with graph token URL used : https://graph.microsoft.com/v1.0/users/delta?$select=id,mail,userType,userPrincipalName,accountEnabled,displayName,assignedPlans,preferredDataLocation

解决方案

preferredDataLocation is not supported for https://graph.microsoft.com/v1.0/users/delta

You could use Microsoft Graph API Beta Version Use the below API URL

https://graph.microsoft.com/beta/users?$select=id,mail,userType,userPrincipalName,preferredDataLocation

See the screen shot :

Point To Remember:

  1. If your DataLocation is not configured you have to configure it other then preferredDataLocation will be shown as Null
  2. You can have a look here how could you configure DataLocation

这篇关于在用户/增量API中获取preferredDataLocation时无法/错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆