Fix UPN Changing to Email After Invalid Password in Microsoft Entra ID
Question details
Users experience an authentication issue where their non-email UPN is automatically replaced by their email address on the sign-in screen after entering an incorrect password.
- Product
- Microsoft Entra ID
- Device & OS
- not provided
- Scenario
- A user attempts to sign in to a Microsoft service using a non-email User Principal Name (UPN) but enters an invalid password.
- Observed behavior
- The sign-in interface unexpectedly converts the non-email UPN to a valid email address without completing authentication, causing the next login attempt to fail and potentially exposing user information.
Ensure you have global administrator or authentication administrator privileges in the Microsoft Entra admin center to review and modify tenant sign-in and synchronization policies.
Verify Hybrid Authentication and Alternate Login ID Settings
Check if the 'Email as alternate login ID' feature is enabled, as this can cause the system to resolve the UPN to an email address during the authentication flow.
In hybrid environments, configuration settings related to Microsoft Entra Connect can alter how identifiers are processed. Disabling or verifying these settings is the first step in troubleshooting identifier changes.
Sign in to the Microsoft Entra admin center using your administrator credentials.
Go to Identity in the left menu, expand Hybrid management, select Microsoft Entra Connect, and click on Connect Sync.
Review the settings to determine if 'Email as alternate login ID' is enabled. If it is, this may be causing the automatic conversion.
Ensure that the UPN domain being used is fully validated and correctly synchronized within your tenant.
Review Sign-in Logs and Escalate to Microsoft Support
If the alternate login ID feature is already disabled but the UPN still converts to an email address, investigate the sign-in logs and escalate the issue to address potential information disclosure.
Try WPS Office for a Seamless and Independent Workspace
If complex enterprise login issues and cloud synchronization problems are disrupting your workflow, consider using WPS Office. It provides a lightweight, offline-capable environment for document editing without relying on strict cloud domain authentications.
- 1. Download the installer: Visit the official WPS Office website and click the 'Download WPS Office Free' button.
- 2. Install the software: Run the downloaded file and follow the simple on-screen instructions to install the suite on your device.
- 3. Start working instantly: Open WPS Office and begin creating or editing your documents immediately, with or without a cloud sign-in.

Frequently Asked Questions
What is 'Email as alternate login ID' in Microsoft Entra?
It is a feature that allows users to sign in to Azure AD/Microsoft Entra using their primary email address instead of their UPN. This is often used when an organization's UPN is non-routable or overly complex.
Why does my UPN change to an email address after a failed password attempt?
This typically happens if hybrid authentication features attempt to resolve the user's identity to a known email address. However, if 'Email as alternate login ID' is disabled, this conversion may be an unexpected service-side behavior in the authentication flow.
Is it a security risk if the UPN changes to an email address before authentication?
It can be considered an information disclosure risk, as it potentially reveals a user's valid email address to someone who only knows the UPN, even if they failed to provide the correct password.




