

Modified script:īefore you run the script, please enable Drive API at Advanced Google services.ĭriveApp.getFileById(id).addViewer(email) When your script is modified, it becomes as follows. In the current stage, the version of Drive API at Advanced Google services is v2.When the method of "Permissions: insert" in Drive API is used, the custom message can be added. In order to use the custom message to the invitation email of shared file, in this case, Drive API is used.


If you share or unshare folders with a lot of files or subfolders, it might take time before all permissions change.Can view only: People can see the folder and they can open all files within the folder.Can organize, add, & edit: If they're signed into a Google account, people can open, edit, delete, or move any files within the folder.Here’s what people can do with folders after you share it with them: Want to get more out of Google Drive for work or school? Sign up for a Google Workspace trial at no charge.
