# Alguma sugestão para solucionar problemas quando o Microsoft Auth puxa o e-mail errado?

**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:** [Julho 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:** 3

<div class="post-metadata">

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

</div>

Ele realmente faz exatamente isso! Deve ser bem fácil adicionar uma configuração para isso.

```plaintext

info do
        {
          name: raw_info['displayName'] || raw_info['userPrincipalName'],
          email: raw_info['mail'] || raw_info['userPrincipalName']
        }
end

```

---

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