Pipory
Node reference

Google Drive (OAuth)

Google Drive (OAuth) node reference - all 47 operations, the credential it needs, and a worked example.

Google Drive with a connected Google account. Files (list, search, get, download, upload, replace contents, rename, copy, move, trash, restore), sharing and permissions, comments and replies, version history, shared drives, change tracking and storage quota.

Credential: Google account - see Credentials.

Scopes

Each operation below lists the scope it needs. Scopes are ticked as a scope preset when you connect the Google account, then consented to on Google's screen — note Google treats both Drive scopes as RESTRICTED, so a production app needs verification. Unlike Calendar, the two presets are NOT nested: 22 of the 47 operations run on read-only and the other 25 need full access. If a run fails with a permission error, the node names the missing scope in the error - grant it and re-run; you do not need to rebuild the workflow.

Operations (47)

Files — find and read

OperationWhat it doesScope
listFilesList filesGoogle Drive (read-only) — drive.readonly
searchFilesSearch files by textGoogle Drive (read-only) — drive.readonly
getFileGet file metadataGoogle Drive (read-only) — drive.readonly
downloadFileDownload file contentsGoogle Drive (read-only) — drive.readonly
exportGoogleDocExport a Google Doc/Sheet/SlideGoogle Drive (read-only) — drive.readonly
generateFileIdsGenerate file IDsGoogle Drive (full access) — drive

Files — create and change

OperationWhat it doesScope
uploadFileUpload a fileGoogle Drive (full access) — drive
updateFileContentReplace a file's contentsGoogle Drive (full access) — drive
updateFileUpdate file details (rename, describe, star)Google Drive (full access) — drive
createFolderCreate folderGoogle Drive (full access) — drive
copyFileCopy fileGoogle Drive (full access) — drive
moveFileMove file to another folderGoogle Drive (full access) — drive

Files — trash

OperationWhat it doesScope
deleteFileMove file to trashGoogle Drive (full access) — drive
untrashFileRestore file from trashGoogle Drive (full access) — drive
emptyTrashEmpty trashGoogle Drive (full access) — drive

Sharing

OperationWhat it doesScope
shareFileShare fileGoogle Drive (full access) — drive
listPermissionsList who a file is shared withGoogle Drive (read-only) — drive.readonly
getPermissionGet one sharing permissionGoogle Drive (read-only) — drive.readonly
updatePermissionChange someone's accessGoogle Drive (full access) — drive
unshareFileRevoke accessGoogle Drive (full access) — drive

Access requests

OperationWhat it doesScope
listAccessProposalsList pending access requestsGoogle Drive (full access) — drive
getAccessProposalGet one access requestGoogle Drive (full access) — drive
resolveAccessProposalApprove or deny an access requestGoogle Drive (full access) — drive

Comments

OperationWhat it doesScope
createCommentAdd a commentGoogle Drive (full access) — drive
listCommentsList commentsGoogle Drive (read-only) — drive.readonly
getCommentGet a commentGoogle Drive (read-only) — drive.readonly
updateCommentEdit a commentGoogle Drive (full access) — drive
deleteCommentDelete a commentGoogle Drive (full access) — drive

Comment replies

OperationWhat it doesScope
createReplyReply to a comment (or resolve it)Google Drive (full access) — drive
listRepliesList repliesGoogle Drive (read-only) — drive.readonly
getReplyGet a replyGoogle Drive (read-only) — drive.readonly
updateReplyEdit a replyGoogle Drive (full access) — drive
deleteReplyDelete a replyGoogle Drive (full access) — drive

Version history

OperationWhat it doesScope
listRevisionsList versionsGoogle Drive (read-only) — drive.readonly
getRevisionGet version detailsGoogle Drive (read-only) — drive.readonly
downloadRevisionDownload an old versionGoogle Drive (read-only) — drive.readonly
updateRevisionKeep a version forever / publish itGoogle Drive (full access) — drive

Shared drives

OperationWhat it doesScope
listSharedDrivesList shared drivesGoogle Drive (read-only) — drive.readonly
getSharedDriveGet shared driveGoogle Drive (read-only) — drive.readonly
createSharedDriveCreate shared driveGoogle Drive (full access) — drive
updateSharedDriveUpdate shared driveGoogle Drive (full access) — drive
hideSharedDriveHide shared driveGoogle Drive (full access) — drive
unhideSharedDriveUnhide shared driveGoogle Drive (full access) — drive
deleteSharedDriveDelete shared driveGoogle Drive (full access) — drive

Change tracking

OperationWhat it doesScope
getChangesStartTokenGet a change-tracking start tokenGoogle Drive (read-only) — drive.readonly
listChangesList changes since a tokenGoogle Drive (read-only) — drive.readonly

Account

OperationWhat it doesScope
getStorageQuotaGet storage quota and account infoGoogle Drive (read-only) — drive.readonly

Example

Share a generated file with the client who requested it

An earlier node produced a file in Drive (an upload, a copy, or an export). This node grants the requester read access and returns a link you can paste straight into the reply. Google's own notification emails are suppressed, so the workflow controls the messaging.

Set Operation to shareFile, then fill in:

FieldValueNotes
fileId{{upload.fileId}}From the upstream Drive node
shareTypeuserOne of user, group, domain, anyone
email{{trigger.requester.email}}Required for user and group shares
rolereaderOne of reader, commenter, writer, fileOrganizer, organizer, owner. The last two only apply on a shared drive; owner also requires transferOwnership
sendNotificationEmailuncheckedOff by default, so Google stays quiet and the workflow owns the messaging

Sets {{shared.webViewLink}} (the open-in-Drive URL), {{shared.permissionId}} and {{shared.fileId}}. An email node then sends {{shared.webViewLink}}. To see everyone a file is already shared with, run listPermissions on the same file id and read {{shared.permissions}}.