Skip to content

Commit 4cefa61

Browse files
Update adminSDK/directory/quickstart.gs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 49bf7d8 commit 4cefa61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adminSDK/directory/quickstart.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function listUsers() {
3737
// Print the list of user's full name and email
3838
console.log('Users:');
3939
for (const user of users) {
40-
if (user.name) {
40+
if (user.name?.fullName) {
4141
console.log('%s (%s)', user.primaryEmail, user.name.fullName);
4242
} else {
4343
console.log('%s', user.primaryEmail);

0 commit comments

Comments
 (0)