Remove attendees from calendar event to work without Domain-Wide Delegation
- Service accounts require Domain-Wide Delegation to invite attendees - Removed attendees array, sendUpdates, and guest permissions - Client email still included in event description - Google Meet link will still be generated successfully - Can re-enable attendees later if Domain-Wide Delegation is configured
This commit is contained in:
@@ -205,19 +205,14 @@ serve(async (req: Request): Promise<Response> => {
|
||||
dateTime: endDate.toISOString(),
|
||||
timeZone: "Asia/Jakarta",
|
||||
},
|
||||
attendees: [
|
||||
{ email: body.client_email },
|
||||
],
|
||||
// Note: attendees removed because service accounts need Domain-Wide Delegation
|
||||
// Client email is included in description instead
|
||||
conferenceData: {
|
||||
createRequest: {
|
||||
requestId: body.slot_id,
|
||||
conferenceSolutionKey: { type: "hangoutsMeet" },
|
||||
},
|
||||
},
|
||||
sendUpdates: "all",
|
||||
guestsCanInviteOthers: false,
|
||||
guestsCanModify: false,
|
||||
guestsCanSeeOtherGuests: false,
|
||||
};
|
||||
|
||||
console.log("Creating event in calendar:", calendarId);
|
||||
|
||||
Reference in New Issue
Block a user