diff --git a/modules/emails/src/OAuth2/MicrosoftLogin.php b/modules/emails/src/OAuth2/MicrosoftLogin.php index 94e159150..461bc82de 100644 --- a/modules/emails/src/OAuth2/MicrosoftLogin.php +++ b/modules/emails/src/OAuth2/MicrosoftLogin.php @@ -48,6 +48,6 @@ class MicrosoftLogin extends Azure implements ProviderInterface { $me = $this->get('https://graph.microsoft.com/v1.0/me', $access_token); - return $me['mail']; + return $me['userPrincipalName']; } }