【问题标题】:Azure graph API B2C - Invalid versionAzure 图形 API B2C - 版本无效
【发布时间】:2016-10-12 10:51:03
【问题描述】:

使用以下网址: https://graph.microsoft.com/dd0d2506-56b4-463c-bd19-98cd81bdfb1c/users/821d91b8-36e1-4b89-bd3a-4caecc40e4c9/$links/memberOf?api-version=1.6

我正在尝试调用图形 API,但出现以下错误。

{
  "error": {
    "code": "BadRequest",
    "message": "Invalid version",
    "innerError": {
      "request-id": "cb8002f1-da39-4ad2-8695-a2d349efc303",
      "date": "2016-10-12T10:46:23"
    }
  }
}

我试过这些版本

  • /users?api-version=1.5
  • /users?api-version=beta
  • /users?api-version=1.6

天蓝色门户处于“预览”状态。有人看过吗?

【问题讨论】:

标签: azure azure-ad-b2c


【解决方案1】:

您使用的 API 版本模式适用于 Azure AD Graph API (https://graph.windows.net),但您使用的端点适用于 Microsoft Graph API (https://graph.microsoft.com)。

如果你想使用 Azure AD Graph API,你应该使用:

https://graph.windows.net/{tenant-id}/users/{id}/memberOf?api-version=1.6

如果您想使用 Microsoft Graph API,您可以使用:

https://graph.microsoft.com/v1.0/{tenant-id}/users/{id}/memberOf

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-04-24
    • 1970-01-01
    • 2020-05-09
    • 1970-01-01
    • 2019-10-10
    • 1970-01-01
    • 2020-04-10
    • 1970-01-01
    相关资源
    最近更新 更多