# Any suggestions for troubleshooting when Microsoft Auth pulls in the wrong email address?

**URL:** <https://meta.discourse.org/t/any-suggestions-for-troubleshooting-when-microsoft-auth-pulls-in-the-wrong-email-address/233002>\
**Category:** SSO\
**Tags:** 365-oauth\
**Created:** [July 15, 2022, 8:38pm UTC](https://meta.discourse.org/t/any-suggestions-for-troubleshooting-when-microsoft-auth-pulls-in-the-wrong-email-address/233002 "2022-07-15T20:38:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![agungor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/agungor/32/260344_2.png) [@agungor](https://meta.discourse.org/u/agungor)\
**Post date:** [July 15, 2022, 9:03pm UTC](https://meta.discourse.org/t/any-suggestions-for-troubleshooting-when-microsoft-auth-pulls-in-the-wrong-email-address/233002/2 "2022-07-15T21:03:13Z")

</div>

My guess is that the plugin is prioritizing the `mail` property of the user resource over `userPrincipalName`. If this is the case, an update to the plugin should resolve the issue.

---

_[View the full topic](https://meta.discourse.org/t/any-suggestions-for-troubleshooting-when-microsoft-auth-pulls-in-the-wrong-email-address/233002)._
