question

64690373 avatar image
0 Votes"
64690373 asked 64690373 answered

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

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.


azure-ad-domain-services
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, we are investigating your issue and will update you soon.

Best,
James

0 Votes 0 ·

Hi @64690373 , in the portal, do any of the user attributes match? If so, which ones?


0 Votes 0 ·
64690373 avatar image
0 Votes"
64690373 answered

HI @JamesHamil-MSFT, yes, at least userPrincipalName and surname as they are the same person but in different domains

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered

Hi @64690373 , 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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

64690373 avatar image
0 Votes"
64690373 answered

Thanks for your help @JamesHamil-MSFT

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.