Skip to content

Commit ae0f4ea

Browse files
committed
Explicitly allow external members on lists we create in Google Groups
See https://support.google.com/a/answer/16778447
1 parent 33cff92 commit ae0f4ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/MailingList/GoogleGroups.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,19 @@ protected function createList(): void
105105
'json' => $body,
106106
],
107107
);
108+
109+
// We need to update the list to accept external members.
110+
$updateSettings = [
111+
'allowExternalMembers' => 'true',
112+
];
113+
114+
$this->request(
115+
'PATCH',
116+
"https://admin.googleapis.com/admin/directory/v1/groups/{$this->listName}",
117+
[
118+
'json' => $updateSettings,
119+
],
120+
);
108121
}
109122

110123
/**

0 commit comments

Comments
 (0)