我们无法识别此租户 ID 21f3be0a-713c-4b7f-ab75-3cc5ca25846。请仔细检查租户 ID,然后重试。",

We do not recognize this tenant ID 21f3be0a-713c-4b7f-ab75-3cc5ca25846. Please double-check the tenant ID and try again.",

我想在 https://apps.dev.microsoft.com 上制作多租户应用程序。 这适用于单个租户,但 我制作多租户应用程序的过程---- 与其他租户一起登录并显示同意 window 并成功获取代码,我通过该代码获取令牌

令牌成功生成: office 365 的调用图 API 但是错误生成率—— “我们无法识别此租户 ID 21f3be0a-xx-4b7f-ab05-xxxxx6。请仔细检查租户 ID,然后重试。

]2 当 office 365 的访问数据报告为什么此租户 ID 无法识别时引发错误? 需要在清单中编辑吗? 我的应用程序 https://apps.dev.microsoft.com。拥有三个 3 Microsoft Graph 权限 委派权限 - user.read、Reports.Read.All(仅限管理员)

您可以check whether a tenant is valid or invalid使用众所周知的 OpenId 配置端点:

https://login.microsoftonline.com/<tenant>/.well-known/openid-configuration

为您的租户 ID 执行此操作会得到以下结果:

https://login.microsoftonline.com/21f3be0a-713c-4b7f-ab75-3cc5ca25846/.well-known/openid-configuration

error: "invalid_tenant"

error_description: "AADSTS90002: Tenant 21f3be0a-713c-4b7f-ab75-3cc5ca25846 not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.\r\nTrace ID: bdd561b1-bc36-44ce-b3ab-33e53fda0100\r\nCorrelation ID: c6ce0c0d-6550-4f5f-a398-a82f085e28c1\r\nTimestamp: 2017-11-01 17:38:31Z"

简单地说,您使用的租户 ID 对于 AAD Worldwide 终结点无效。

您是否可能正在为不同的 AAD 实例获取令牌?您可以分享 contents of your Access Token(删除任何敏感细节)吗?

   I did some mistakes thats why this Error raised then need not do anything becoz this Portal app by default Multitenant and send request to common platform ..
    Login with other tenant get code

    https://login.microsoftonline.com/common/oauth2/authorize?
    client_id=XXXXX-XXX
    &response_type=code
    &redirect_uri=http://localhost:49876    
    &response_mode=query
    &scope=Reports.Read.All 
    &prompt=consent
    &state=12345


    then get token 
    https://login.microsoftonline.com/common/oauth2/token
    client_id =XXX
    scope =
    code= which you get
    grant_type=
    client_secret=

    after get token use for Graph API & get office365 data for -https://graph.microsoft.com/beta/reports/getMailboxUsageMailboxCounts(period='D7')