From 079b343da1b17075d3ec8ea0ca5715b5e241d59b Mon Sep 17 00:00:00 2001 From: Rory Shanks <6383578+rorylshanks@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:25:46 +0100 Subject: [PATCH] Add google workspace (#14) * Added ability to use google workspace * Added ability to use google workspace * Fixed tests * Moved to use email as user id --- lib/idp_adapters/googleworkspace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/idp_adapters/googleworkspace.js b/lib/idp_adapters/googleworkspace.js index 24b4886..4d2e41e 100644 --- a/lib/idp_adapters/googleworkspace.js +++ b/lib/idp_adapters/googleworkspace.js @@ -50,7 +50,7 @@ async function getUsersAndGroups() { surname: user.name.familyName, userPrincipalName: user.primaryEmail, mail: user.primaryEmail, - id: user.id, + id: user.primaryEmail, groups: groups ? groups.map(group => group.name) : [] }; }