文档办公

recipe-share-event-materials

googleworkspace/cli

Share Google Drive files with all attendees of a Google Calendar event.

  • 3万 次安装
  • 3.2万 星标
  • 收录于

安装命令

npx skills add https://github.com/googleworkspace/cli --skill recipe-share-event-materials

要点

Automatically share Google Drive files with all attendees of a Calendar event.

  • Requires gws-calendar and gws-drive skills as dependencies
  • Retrieves event attendee list from Google Calendar, then grants each attendee reader access to specified Drive files
  • Includes verification step to confirm sharing permissions were applied successfully

SKILL.md

Share 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

  1. Get event attendees: gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'
  2. Share file with each attendee: gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "attendee@company.com"}'
  3. Verify sharing: gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table