gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 02:15:23 24 4
gpt4 key购买 nike

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

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

Additional information from the call to get a token: Extension:Microsoft_AAD_Devices Resource: microsoft.graph Details: The logged inuser is not authorized to fetch tokens for extension'Microsoft_AAD_Devices' because the user account is not a member oftenant 'f8cdef31-a31e-4b4a-93e4-5f571e91255a'. Error details:AADSTS50020: User account '{EmailHidden}' from identity provider'live.com' does not exist in tenant 'Microsoft Services' and cannotaccess the application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(AzurePortal) in that tenant. The account needs to be added as an externaluser in the tenant first. Sign out and sign in again with a differentAzure 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 cannotaccess the application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(AzurePortal) 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com