$npx -y skills add googleworkspace/cli --skill recipe-share-event-materialsShare Google Drive files with all attendees of a Google Calendar event.
| 1 | # Share Files with Meeting Attendees |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-calendar`, `gws-drive` |
| 4 | |
| 5 | Share Google Drive files with all attendees of a Google Calendar event. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 1. Get event attendees: `gws calendar events get --params '{"calendarId": "primary", "eventId": "EVENT_ID"}'` |
| 10 | 2. Share file with each attendee: `gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "attendee@company.com"}'` |
| 11 | 3. Verify sharing: `gws drive permissions list --params '{"fileId": "FILE_ID"}' --format table` |