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 从公开仓库中收录这些内容。

举报或申请下架