Recipe Share Event Materials

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

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

AI 產生的概覽

使用 gws 命令列工具,將 Google Drive 檔案分享給 Google 日曆活動的所有參與者。

功能
此配方描述一套三步流程,用來把 Google Drive 檔案的存取權授予某個 Google 日曆活動的參與者。它會先從日曆活動取得參與者名單,再為每位參與者對指定檔案建立檢視者權限,最後列出該檔案的權限以確認分享結果。它產出的是檔案分享權限,而不是檔案或文件本身。
適用情境
當你需要把某個 Drive 檔案分送給特定日曆活動的所有受邀者時使用,例如向與會者分享會議資料。它適合參與者名單已存在於 Google 日曆中,且需要按人授予存取權的情境。
執行需求
需要具備日曆與雲端硬碟功能的 gws 命令列工具,以及 gws-calendar 和 gws-drive 技能。需要存取 Google 日曆和 Google Drive,並提供日曆 ID、活動 ID、檔案 ID 與參與者電子郵件地址。此技能不含指令碼,僅為操作說明。

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": "[email protected]"}'
  3. Verify sharing: gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table

來源與署名

來源:googleworkspace/cli位於skills/recipe-share-event-materials提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架