recipe-share-event-materials

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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.
前提条件: 加载以下技能以执行此方案:
gws-calendar
gws-drive
与Google Calendar活动的所有参与者共享Google Drive文件。

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
  1. 获取活动参与者:
    gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'
  2. 与每位参与者共享文件:
    gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "attendee@company.com"}'
  3. 验证共享状态:
    gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table