The whole folder could be exposed to the wrong account if the folder and recipients are not confirmed individually
Source references: 4The workflow directly creates folder-level `writer` and `reader` permissions for specified email addresses. Its stated scope is the folder and all contents, so a wrong folder ID or incorrectly substituted example address affects more than one file.
An unintended recipient could read the folder’s contents; a recipient given `writer` access could also modify them. The permission persists until it is revoked separately.
The recipe finds a folder by name, then directly creates folder-level access using placeholder folder IDs and email addresses; verification occurs only afterward. If the wrong search result, FOLDER_ID, or address is used, an unintended account could read the folder and its contents, while a writer could also modify them. Users can ask for a pre-action confirmation of the folder ID/name, recipient, and role, and restrict access to reader where possible.
Share a Google Drive folder and all its contents with a list of collaborators.Show 3 other places
1. Find the folder: `gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'`2. Share as editor: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}'`3. Share as viewer: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'`4. Verify permissions: `gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table`1. Find the folder: `gws drive files list --params '{"q": "name = '\''Project X'\'' and mimeType = '\''application/vnd.google-apps.folder'\''"}'`2. Share as editor: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "colleague@company.com"}'`3. Share as viewer: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'`3. Share as viewer: `gws drive permissions create --params '{"fileId": "FOLDER_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "stakeholder@company.com"}'`4. Verify permissions: `gws drive permissions list --params '{"fileId": "FOLDER_ID"}' --format table`