From f9e91c960bda3e9b6c396a0aea1c194988b2cf78 Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 6 Aug 2018 17:34:05 +0200 Subject: [PATCH] fix email should be userPrincipalName attribute --- Provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Provider.php b/Provider.php index 14f1319..4719bee 100644 --- a/Provider.php +++ b/Provider.php @@ -72,7 +72,7 @@ protected function mapUserToObject(array $user) 'id' => $user['id'], 'nickname' => null, 'name' => $user['displayName'], - 'email' => $user['mail'], + 'email' => $user['userPrincipalName'], 'avatar' => null, 'businessPhones' => $user['businessPhones'],