大网数据广告活动
域与目录服务

Error AADSTS50057 - User account is disabled

· 52CE 我爱测

Provides a solution to an issue where a user experiences the AADSTS500571 error when they try to sign in to an Azure app that can be used with Microsoft Entra ID.

Summary

This article discusses how to resolve the "AADSTS50057" error that occurs when a user tries to sign in to an application that can be used together with Microsoft Entra ID.

Symptoms

When users try to sign in to an application that's integrated into Microsoft Entra ID, they receive an "AADSTS50057" error message ("The user account is disabled.").

Cause

The user object is disabled on the resource tenant.

Solution

Engage the resource tenant owners to determine why the user account is disabled. Then, take the corresponding action, as shown in the following table.

Scenario Action
The user account is supposed to be disabled. No actions should be performed. Access is expectedly blocked.
The user account isn't supposed to be disabled, or it was disabled by mistake. Resource tenant owners should re-enable the account. One of the options to re-enable the account is using PowerShell to set the -AccountEnabled parameter to $true, as described in the Set-AzureADUser cmdlet reference.

More information

For a full list of authentication and authorization error codes, see Microsoft Entra authentication and authorization error codes.

To investigate individual errors, go to https://login.microsoftonline.com/error.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/25/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。