Entra External ID - Enabled username login but client side validation requires an email

Chad 0 Reputation points
2026-05-28T14:14:13.58+00:00

Hi all,

I have an entra external ID tenant that I have enabled username sign-in identifiers for. I can register and apply a username identity, see the username in the users but in the user flow it only allows emails to be entered.

The user:

User's image

sign-in identifier settings:

User's image

testing flow from the portal (or an app) does not allow username and fails client side validaton:

User's image

what am I missing here? I've waited 24hrs just in case it was a sync issue but no change.

This worked fine in previous tenants but I tried multiple new tenants and get the same result. Just to be sure the policy was set correctly I queried in graph and confirmed username was in the list.

Thanks

Microsoft Security | Microsoft Entra | Microsoft Entra External ID

1 answer

Sort by: Most helpful
  1. AI answer

    2026-05-28T14:14:44.0433333+00:00

    Username sign-in in Microsoft Entra External ID requires two separate configurations to be in place and aligned with the user flow being used:

    1. Enable username as a sign-in identifier at the tenant level
      This is done in the Sign-in identifiers policy. From the screenshot, Username is already enabled with the default regex, which is correct.
    2. Use a user flow that is configured for username/alias
      The page in the screenshot that enforces an email format is the standard Email with password local account experience. That experience always validates the identifier as an email address. To allow username input instead of email in the user flow:
      • In the external tenant, go to Entra IDExternal IdentitiesUser flows.
      • Open the specific user flow being tested.
      • Under Settings, select User attributes and ensure the Username attribute is added to the flow.
      • Optionally, under Page layout, change the label of the Username field (for example, to Alias or User ID).
      When the user flow is configured with the Username attribute, and Username is enabled in the sign-in identifiers policy, users who have a username identity (as in the screenshot) can sign in using either their email address or their username. The client-side validation will then accept the username value instead of requiring an email format.
    3. Confirm behavior when testing
      Use Run user flow to test. If signing in with email, preferred_username will contain the email; if signing in with username, preferred_username will contain the username.

    If the user flow still shows an email-only field, verify that the correct (updated) user flow is the one being invoked by the application and that it has the Username attribute configured as above.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.