Microsoft 365 sign-in (Entra ID)

AADSTS50057: the user account is disabled in Microsoft Entra ID

AADSTS50057 means the user account is disabled in the tenant the user signs in to. Why it happens, when to leave it, and how an admin re-enables the account.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

AADSTS50057 is the Microsoft Entra code UserDisabled. The user tried to sign in to an application that uses Microsoft Entra ID, and the user object for that account is disabled. Microsoft's reference says the user object in Active Directory backing the account has been disabled, and that an admin can re-enable it through PowerShell.

Microsoft's dedicated article is specific about where the problem lives: the user object is disabled on the resource tenant, which is the tenant that owns the application. For an employee signing in to their own company's apps, that is their own tenant. For a guest using another organization's app, it is the other organization's tenant, and only its administrators can change it.

A disabled account is often intentional, for example after someone leaves or while a security issue is investigated. Microsoft's guidance therefore starts with finding out why the account was disabled, not with switching it back on.

Common causes

  • An administrator disabled the account on purpose, and access is meant to be blocked.
  • The account was disabled by mistake.
  • For guests, the resource tenant disabled the guest user object.
  • For accounts synced from on-premises Active Directory, Microsoft's reference points to the Active Directory user object behind the account being disabled.

How to fix it

1. Users: contact the right administrators

Note the account name, the application and the time of the error. If you are signing in to your own organization's app, contact your help desk. If you are a guest in another organization's app, contact that organization, because the account is disabled in their tenant.

2. Admins: find out why the account is disabled

Microsoft's article says to engage the resource tenant owners to determine why the user account is disabled. As a general step, check the Microsoft Entra audit logs for the user to see who changed the account and when. If the account is supposed to be disabled, no action should be taken: access is expectedly blocked.

3. Admins: re-enable an account that was disabled by mistake

If the account is not supposed to be disabled, resource tenant owners should re-enable it. Microsoft's article gives PowerShell as one option: set the -AccountEnabled parameter to $true, as described in the Set-AzureADUser cmdlet reference. As a general step, you can also open the user in the Microsoft Entra admin center and allow sign-in there, which avoids depending on an older PowerShell module.

4. Admins: re-enable synced accounts at the source

The reference says the user object in Active Directory backing the account is disabled. As a general step, for an account synced from on-premises Active Directory, enable it in Active Directory and let synchronization update Microsoft Entra ID, rather than changing only the cloud object.

5. Sign in again

After the account is enabled, the user signs in again. As a general step, use a private browser window so a cached error page is not shown.

If nothing works

Look up the failed sign-in in the Microsoft Entra sign-in logs with the correlation ID and time. Microsoft's article also points to the login.microsoftonline.com/error lookup page for individual errors. If the account is a guest and the disabled status is not the problem, compare with AADSTS50020, which covers guests that do not exist in the tenant.

What we checked

Two Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS50057 as UserDisabled and says an admin can re-enable the account through PowerShell. The dedicated AADSTS50057 article says the user object is disabled on the resource tenant and gives the two scenarios: leave it if the account is meant to be disabled, or re-enable it with the AccountEnabled setting. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does AADSTS50057 mean?

Microsoft lists it as UserDisabled: the user object behind the account is disabled in the tenant, so Microsoft Entra ID blocks the sign-in.

Can I re-enable my own account after AADSTS50057?

No. Only the resource tenant's administrators can re-enable the account, and Microsoft's first step is for them to find out why it was disabled. If it was disabled on purpose, access is expected to be blocked.

I am a guest. Whose account is disabled?

Microsoft's article says the user object is disabled on the resource tenant, the tenant that owns the app. Contact that organization's administrators, not your own IT team.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.