Skip to main content
googleDrive.createPermission shares a Drive file with a user, group, domain, or anyone.

Example

Inputs

Provide fileId, type, and role. Roles can be organizer, fileOrganizer, writer, commenter, or reader. User and group permissions require emailAddress; domain permissions require domain. expirationTime is optional for user and group permissions and unavailable for domain and anyone permissions. Google requires an expiration in the future and no more than one year away. Notification fields are optional. A second argument with account selects a Google Account.

Output

Returns the created normalized permission.