Skip to content

Commit 22bbd51

Browse files
committed
require first and last name to sync to gsuite contact list
1 parent 061ebc3 commit 22bbd51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ const syncContacts = async (
7676
let skippedNoName = 0;
7777

7878
for (const user of entraUsers) {
79-
if (!user.givenName && !user.familyName && !user.displayName) {
79+
if (!user.familyName || !user.displayName) {
8080
logger.info(
8181
{ email: user.email, upn: user.upn },
82-
"Skipping user with no name information",
82+
"Skipping user with no first and/or last name information",
8383
);
8484
skippedNoName++;
8585
continue;

0 commit comments

Comments
 (0)