Summary
This article discusses how to resolve an AADSTS500571 error that occurs when a user tries to sign in to an application that can be used together with Microsoft Entra ID.
Symptoms
When a guest user tries to sign in to an application that's integrated into Microsoft Entra ID, they receive an "AADSTS500571" error message ("The guest user account is disabled").
Cause
The guest user object is disabled on the resource tenant.
Solution
Engage the resource tenant owners or sponsor to determine the reason that the guest account is disabled. Then, take the corresponding action, as shown in the following table.
| Scenario | Action |
|---|---|
| The guest account is supposed to be disabled. | No actions should be performed. Access is expectedly blocked. |
| The guest 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 by 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 (upstream author metadata: custorod). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
