UNPKG

n8n-nodes-service-account-google-drive

Version:
91 lines (67 loc) 2.26 kB
# n8n-nodes-service-account-google-drive This is an n8n community node that provides comprehensive Google Drive integration using Service Account authentication. ## Features ### Main Node Operations #### File Operations - **Create/Upload**: Create or upload files - **Get**: Get file information - **List**: List files with filters - **Download**: Download file content - **Export**: Export Google Workspace files to various formats (PDF, DOCX, XLSX, CSV, PPTX, etc.) - **Import**: Import files converting to Google Workspace format - **Update**: Update file metadata - **Copy**: Copy files - **Move**: Move files between folders - **Delete**: Delete files #### Folder Operations - **Create**: Create folders - **List**: List folders - **Delete**: Delete folders #### Permission Operations - **Create**: Share files/folders with users, groups, domains, or anyone - **Get**: Get permission details - **List**: List all permissions - **Update**: Update permission roles - **Delete**: Remove permissions ### Trigger Node (Webhook) - Real-time monitoring of file/folder changes - Events: File Created, Updated, Deleted, Shared - Support for subfolder monitoring ## Export Formats Supported - **Google Docs** → PDF, DOCX, RTF, TXT, HTML, EPUB - **Google Sheets** → XLSX, CSV, TSV, ODS - **Google Slides** → PPTX, ODP - **Google Drawings** → JPEG, PNG, SVG ## Import Formats Convert files to: - Google Docs - Google Sheets - Google Slides - Google Drawings ## Authentication Supports two authentication methods: 1. **Saved Credential**: Use credentials saved in n8n 2. **Manual**: Enter credentials for each execution Both methods support: - Service Account authentication - Domain-Wide Delegation (user impersonation) ## Installation ```bash npm install n8n-nodes-service-account-google-drive ``` Or install directly in n8n: 1. Go to Settings → Community Nodes 2. Search for `n8n-nodes-service-account-google-drive` 3. Install ## Setup 1. Create a Service Account in Google Cloud Console 2. Enable Google Drive API 3. Download the JSON key file 4. Add credentials in n8n with: - Service Account Email - Private Key - (Optional) User email to impersonate ## License MIT ## Author Alexandre Jaques - alexandre@chatguru.com.br