User's mailbox API returning different emails when on OWA vs desktop client, or pre/post SSO sign in
问题 In our 365 add-in, we're using the Office.context.mailbox.userProfile.emailAddress API to get the user's email address, for authentication/data retrieval with our own backend (e.g. get the user's data). It returns inconsistent results depending on the user's 365 setup. Some users who have SSO setup with their org will have a completely different email returned from that API after they go through the OAuth process - meaning that it will return something like jon.smith@domain.com pre-OAuth,