仓库原始内容
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
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
- Get event attendees:
gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}' - Share file with each attendee:
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "attendee@company.com"}' - Verify sharing:
gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table

