跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

recipe-share-event-materials · 日历参会人共享云端文件

读取 Google Calendar 事件的参会人列表,再逐个为这些参会人授予 Google Drive 文件的 reader 权限,最后列出权限核对共享结果。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

把产品评审会(eventId 已知)的全部参会人加为设计稿文件 FILE_ID 的只读协作者,并列出权限确认无遗漏。

输出

预期交付:每位参会人一条 Drive 权限记录,以及 permissions list 返回的权限表格。(编辑说明,非实际运行结果)

方法说明

---
name: recipe-share-event-materials
description: "Share Google Drive files with all attendees of a Google Calendar event."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-calendar
        - gws-drive
---

# 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`