recipe-share-event-materials
作者: Google
與Google日曆活動的所有參與者分享Google Drive檔案。
npx skills add https://github.com/googleworkspace/cli --skill recipe-share-event-materialsShare Files with Meeting Attendees
PREREQUISITE: Load the following skills to execute this recipe:
gws-calendar,gws-drive
Share Google Drive files with all attendees of a Google Calendar event.
Steps
- Get event attendees:
gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}' - Share file with each attendee:
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "attendee@company.com"}' - Verify sharing:
gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table