【问题标题】:Azure Microsoft Graph - Authentication ErrorAzure Microsoft Graph - 身份验证错误
【发布时间】:2021-03-31 02:17:19
【问题描述】:

{"error":{"code":"OrganizationFromTenantGuidNotFound","message":"租户 guid 的租户 '' 才不是 存在。","innerError":{"requestId":"85c28cda-98w7-4c7a-89dd-0962a200ad81","date":"2020-12-17T06:24:44"}}}

【问题讨论】:

  • 通过看到上面的错误消息,您传递的租户 ID 不是有效的,请分享更多详细信息,例如您如何尝试访问图表,如果任何特定的图表 API 请求失败

标签: azure-active-directory microsoft-graph-api


【解决方案1】:

如果 Azure AD 帐户没有订阅 O365,则会导致该错误。尝试按照issuedocument 中关于分配许可证的步骤进行操作。

如果你使用/me端点调用graph API,但你通过client credentials flow获取访问令牌(访问令牌是应用程序身份而不是用户身份),你需要将/me替换为/users/{id | userPrincipalName} 使用authorization code flow获取访问令牌。

更多详情可以参考here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-26
    • 2022-08-23
    • 2017-09-20
    • 1970-01-01
    • 2021-03-15
    • 2018-12-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多