azure - 从 Microsoft 门户 Azure Active Directory 获取错误问题

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

我从 Microsoft Azure 门户的通知中收到此错误消息。

The portal is having issues getting an authentication token. The experience rendered may be degraded.

Additional information from the call to get a token: Extension: Microsoft_AAD_Devices Resource: microsoft.graph Details: The logged in user is not authorized to fetch tokens for extension 'Microsoft_AAD_Devices' because the user account is not a member of tenant 'f8cdef31-a31e-4b4a-93e4-5f571e91255a'. Error details: AADSTS50020: User account '{EmailHidden}' from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(Azure Portal) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account. Trace ID: 413061e1-2c1d-4890-a627-b433d2445000 Correlation ID: 09150c16-6f71-426b-9c88-8559a286d9a2 Timestamp: 2022-03-21 04:26:32Z

在我收到此消息之前,我的应用程序(守护进程节点 js 应用程序)工作正常,并且没有给我 401 错误,自从出现此错误以来,我现在收到了 401 错误。无法排除故障。我的代码如下

require('dotenv').config();

const yargs = require('yargs');

const fetch = require('./fetch');
const auth = require('./auth');



async function main() {
            try {
                // here we get an access token
                const authResponse = await auth.getToken(auth.tokenRequest);
                console.log(authResponse.accessToken);
                // call the web API with the access token
                let users = await fetch.callApi(auth.apiConfig.uri, authResponse.accessToken);

                // display result
                console.log(users);
            } catch (error) {
                console.log(error);
            }

    
    
};

main();

最佳答案

AADSTS50020: User account '{EmailHidden}' from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(Azure Portal) in that tenant.

当您被重定向到登录应用程序时,您可能有一个使用不同个人帐户或组织帐户或使用个人访客帐户的事件 session 。

要检查问题所在,请检查错误消息中的用户帐户身份提供商值

要解决该错误,请从事件 session 中注销,然后使用新的隐身窗口或任何其他浏览器登录

如果有帮助,请找到此链接:

Error AADSTS50020 - User account from identity provider does not exist in tenant

关于azure - 从 Microsoft 门户 Azure Active Directory 获取错误问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71552842/

相关文章:

hosting - 关于微软Azure的问题

python - 使用 MFA 以编程方式在 Azure 中进行身份验证

microsoft-graph-api - 使用 Microsoft Graph API 创建的日历事件。响应中返回的 webLink 无效

java - 使用 msgraph-sdk-java 实现组 $filter 查询

office365 - 类型“Microsoft.OutlookServices.Event”上不存在属性 'iCalUId'

azure - 使用 BICEP 更新不同资源组中的 DNS 区域

Azure 函数发布 url 无法访问

Azure B2C - 断言未签名。策略需要签名断言

java - 将 Azure AD 身份验证与 AWS 中托管的现有基于 Java 的 Web 应用程序集成的可能选项?

azure - 使用 PowerShell DSC VM 扩展应用配置时出错 : "Compilation errors occurred while processing configuration"