diff --git a/OAuth/ResourceOwner/AzureV2ResourceOwner.php b/OAuth/ResourceOwner/AzureV2ResourceOwner.php index acfb1f74e..407a72b60 100644 --- a/OAuth/ResourceOwner/AzureV2ResourceOwner.php +++ b/OAuth/ResourceOwner/AzureV2ResourceOwner.php @@ -31,7 +31,7 @@ class AzureV2ResourceOwner extends GenericOAuth2ResourceOwner protected $paths = array( 'identifier' => 'id', 'email' => 'mail', - 'nickname' => 'mail', + 'nickname' => 'userPrincipalName', 'realname' => 'displayName', 'firstName' => 'givenName', 'lastName' => 'surname'