Azure AD Auth opens incorrect domain in case usernames are the same in 2 domains

Alex Pronin 1 Reputation point
2021-10-18T15:00:32.117+00:00

I have 2 domains: Domain A which is Azure AD (cloud) and Domain B which is On-premise AD (synced with Azure).

There are 2 users with the same suffix but different domains:

username@domainA.com - created manually in AAD
username@domainB.com - synced automatically from On-premise AD

when I'm trying to login to Dynamics CRM (for example) using username@domainA.com - it asks me to enter password, then says that my password incorrect and asks to try again, HOWEVER new screen shows me another username which is username@domainB.com (despite I used username@domainA.com). In case I rename the first account to username.xyz@domainA.com - everything works just fine.

Microsoft Entra
{count} votes

3 answers

Sort by: Most helpful
  1. Alex Pronin 1 Reputation point
    2021-10-28T08:29:27.553+00:00

    HI @James Hamil , yes, at least userPrincipalName and surname as they are the same person but in different domains

    0 comments No comments

  2. James Hamil 22,086 Reputation points Microsoft Employee
    2021-10-29T23:42:03.46+00:00

    Hi @Alex Pronin , This seems like a credential storage issue. It's looking for the wrong set, and you need to sign out and sign back in with another set. You can also try going to admin.microsoft.com and signing out and signing back in. Please let me know if this works.

    If this answer helped you, please mark it as "Verified" so other users may reference it.

    Thank you,
    James

    0 comments No comments

  3. Alex Pronin 1 Reputation point
    2021-11-01T11:17:20.747+00:00

    Thanks for your help @James Hamil

    when I'm trying to login to Dynamics CRM using correct set of credentials (username@domainA.com / passwordA) - system says that my password incorrect and asks to try again, HOWEVER new screen shows me another username which is username@domainB.com (despite I used username@domainA.com).

    In case I rename username@domainA.com to username.xyz@domainA.com and use the same passwordA - everything works just fine.

    0 comments No comments