An enum representing the permissions granted to users who can access a file or folder, besides
any individual users who have been explicitly given access. These properties can be accessed from
DriveApp.Permission.
// Creates a folder that anyone on the Internet can read from and write to. (Domain
// administrators can prohibit this setting for G Suite users.)
var folder = DriveApp.createFolder('Shared Folder');
folder.setSharing(DriveApp.Access.ANYONE, DriveApp.Permission.EDIT);
An enum representing the permissions granted to users who can access a file or folder, besides any individual users who have been explicitly given access. These properties can be accessed from DriveApp.Permission.