{"id":33981,"date":"2025-11-22T23:45:41","date_gmt":"2025-11-22T16:45:41","guid":{"rendered":"https:\/\/dps.media\/?p=33981"},"modified":"2025-11-23T00:40:17","modified_gmt":"2025-11-22T17:40:17","slug":"introduction-to-n8n-node-searching-files-in-shared-google-drive-folder","status":"publish","type":"post","link":"https:\/\/dps.media\/en\/introduction-to-n8n-node-searching-files-in-shared-google-drive-folder\/","title":{"rendered":"Introduction to n8n Node: Shared Google Drive Folder"},"content":{"rendered":"<hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Introduction<\/h2><p class=\"wp-block-paragraph\">Are you struggling to work with files shared on Google Drive in n8n? The default Google Drive node cannot search for files in shared folders?<\/p><p class=\"wp-block-paragraph\">Today I would like to introduce <strong><a href=\"https:\/\/www.npmjs.com\/package\/n8n-nodes-shared-folder-google-drive\" rel=\"nofollow noopener\" target=\"_blank\">n8n-nodes-shared-folder-google-drive<\/a><\/strong> \u2013 m\u1ed9t node n8n community m\u00e0 t\u00f4i \u0111\u00e3 ph\u00e1t tri\u1ec3n \u0111\u1ec3 gi\u1ea3i quy\u1ebft tri\u1ec7t \u0111\u1ec3 v\u1ea5n \u0111\u1ec1 n\u00e0y!<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-1024x492.png\" alt=\"\" class=\"wp-image-33985\" title=\"\" srcset=\"https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-1024x492.png 1024w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-300x144.png 300w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-768x369.png 768w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-1536x737.png 1536w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-2048x983.png 2048w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-18x9.png 18w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-754x362.png 754w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-4-356x171.png 356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption><\/figcaption><\/figure><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Problem to Solve<\/h2><p class=\"wp-block-paragraph\">The built-in Google Drive node in n8n encounters serious problems when working with shared folders:<\/p><ul class=\"wp-block-list\">\n<li>Cannot find files in shared folders<\/li>\n\n\n\n<li>Cannot search for files in shared folders<\/li>\n\n\n\n<li>Lacks important API parameters<\/li>\n\n\n\n<li>L\u1ed7i \u201cFile not found\u201d v\u1edbi file t\u1ed3n t\u1ea1i<\/li>\n\n\n\n<li>Cannot access Team Drives\/Shared Drives<\/li>\n<\/ul><p class=\"wp-block-paragraph\"><strong>Cause:<\/strong> Default node is missing important parameters such as <code data-no-translation=\"\">supportsAllDrives=true<\/code>, <code data-no-translation=\"\">includeItemsFromAllDrives=true<\/code>, and <code data-no-translation=\"\">sharedWithMe<\/code> for shared folders.<\/p><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Solutions<\/h2><p class=\"wp-block-paragraph\"><strong>n8n-nodes-shared-folder-google-drive<\/strong> is an n8n community node specially designed to:<\/p><ul class=\"wp-block-list\">\n<li>Powerful file search in all shared folders<\/li>\n\n\n\n<li>Work with shared folders easily<\/li>\n\n\n\n<li>Support upload\/download files in shared folders<\/li>\n\n\n\n<li>Seamless integration with Google OAuth2<\/li>\n\n\n\n<li>Automatically add required API parameters<\/li>\n<\/ul><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Key Features<\/h2><h3 class=\"wp-block-heading\">Smart File Search<\/h3><ul class=\"wp-block-list\">\n<li><strong>All shared files:<\/strong> Search in all files shared with you<\/li>\n\n\n\n<li><strong>Specific folder:<\/strong> Search in a specific folder<\/li>\n\n\n\n<li><strong>Powerful query:<\/strong> Support Google Drive API search syntax<\/li>\n\n\n\n<li><strong>File type:<\/strong> Filter by file type (PDF, video, image, etc.)<\/li>\n<\/ul><h3 class=\"wp-block-heading\">Folder Management<\/h3><ul class=\"wp-block-list\">\n<li><strong>List Items:<\/strong> List files\/folders in shared folder<\/li>\n\n\n\n<li><strong>Get Item:<\/strong> Get metadata or download file content<\/li>\n\n\n\n<li><strong>Upload Item:<\/strong> Upload file to shared folders<\/li>\n\n\n\n<li><strong>Update\/Remove:<\/strong> Manage metadata and delete file<\/li>\n<\/ul><h3 class=\"wp-block-heading\">Flexible Interface<\/h3><ul class=\"wp-block-list\">\n<li><strong>Simple Mode:<\/strong> Search all shared files (no ID required)<\/li>\n\n\n\n<li><strong>Query Language:<\/strong> Use Google Drive query syntax<\/li>\n\n\n\n<li><strong>Error Handling:<\/strong> Smart error handling with continue-on-fail<\/li>\n<\/ul><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Settings<\/h2><h3 class=\"wp-block-heading\">Method 1: Via Community Nodes (Recommended)<\/h3><ol class=\"wp-block-list\">\n<li>Go to <strong>Settings > Community Nodes<\/strong> in n8n<\/li>\n\n\n\n<li>Select <strong>Install<\/strong><\/li>\n\n\n\n<li>Import: <code data-no-translation=\"\">n8n-nodes-shared-folder-google-drive<\/code><\/li>\n\n\n\n<li>Accept and install<\/li>\n\n\n\n<li>Restart n8n<\/li>\n<\/ol><h3 class=\"wp-block-heading\">Method 2: Manual Installation<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">cd ~\/.n8n\/nodes\nnpm install n8n-nodes-shared-folder-google-drive<\/code><\/pre><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">OAuth2 Configuration<\/h2><ol class=\"wp-block-list\">\n<li>In n8n, create a new credential: <strong>Shared Folder Google Drive OAuth2 API<\/strong><\/li>\n\n\n\n<li>Go to <a href=\"https:\/\/console.cloud.google.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Google Cloud Console<\/a><\/li>\n\n\n\n<li>Create a new project or select an existing project<\/li>\n\n\n\n<li>Enable <strong>Google Drive API<\/strong><\/li>\n\n\n\n<li>Create <strong>OAuth 2.0 Client ID<\/strong><\/li>\n\n\n\n<li>Add authorized redirect URI: <code data-no-translation=\"\">https:\/\/your-n8n-instance.com\/rest\/oauth2-credential\/callback<\/code><\/li>\n\n\n\n<li>Copy <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> into n8n<\/li>\n\n\n\n<li>Connect your Google account<\/li>\n<\/ol><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">How to Get Folder ID<\/h2><ol class=\"wp-block-list\">\n<li>Open the shared folder in Google Drive<\/li>\n\n\n\n<li>Look at the URL: <code data-no-translation=\"\">https:\/\/drive.google.com\/drive\/folders\/16prcpIImJ6vb73yh05q_zaT4qQJhQzJK<\/code><\/li>\n\n\n\n<li>Copy the ID part: <code data-no-translation=\"\">16prcpIImJ6vb73yh05q_zaT4qQJhQzJK<\/code><\/li>\n<\/ol><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Common Search Syntax<\/h2><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-1024x492.png\" alt=\"\" class=\"wp-image-33986\" title=\"\" srcset=\"https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-1024x492.png 1024w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-300x144.png 300w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-768x369.png 768w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-1536x737.png 1536w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-2048x983.png 2048w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-18x9.png 18w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-754x362.png 754w, https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/image-5-356x171.png 356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption><\/figcaption><\/figure><h3 class=\"wp-block-heading\">Find files in a specific folder:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">'FOLDER_ID' in parents<\/code><\/pre><h3 class=\"wp-block-heading\">Find videos in a folder:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">'FOLDER_ID' in parents and mimeType contains 'video'<\/code><\/pre><h3 class=\"wp-block-heading\">Find PDFs by name:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">name contains 'invoice' and mimeType = 'application\/pdf'<\/code><\/pre><h3 class=\"wp-block-heading\">Find recent files:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">modifiedTime > '2024-11-01T00:00:00'<\/code><\/pre><h3 class=\"wp-block-heading\">Find large files (over 10MB):<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">'FOLDER_ID' in parents and size > 10485760<\/code><\/pre><h3 class=\"wp-block-heading\">Find files by time range:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">createdTime > '2024-11-01T00:00:00' and createdTime < '2024-11-30T23:59:59'<\/code><\/pre><h3 class=\"wp-block-heading\">Search by content:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">fullText contains 'h\u00f3a \u0111\u01a1n'<\/code><\/pre><h3 class=\"wp-block-heading\">Search with multiple conditions:<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">(name contains 'report' or name contains 'b\u00e1o c\u00e1o') and mimeType = 'application\/pdf'<\/code><\/pre><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Real-World Use Cases<\/h2><div class=\"wp-block-file\"><a id=\"wp-block-file--media-8cd2d03c-75f6-4f70-92d8-cb8401c3b23e\" href=\"https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/n8n-nodes-shared-folder-google-drive-by-DPSMEDIA.json\">n8n-nodes-shared-folder-google-drive-by-DPSMEDIA<\/a><a href=\"https:\/\/dps.media\/wp-content\/uploads\/2025\/11\/n8n-nodes-shared-folder-google-drive-by-DPSMEDIA.json\" class=\"wp-block-file__button wp-element-button\" aria-describedby=\"wp-block-file--media-8cd2d03c-75f6-4f70-92d8-cb8401c3b23e\" download>Download<\/a><\/div><h3 class=\"wp-block-heading\">1. Automatically Clean Up Old Files<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">modifiedTime < '2024-10-01T00:00:00' and trashed = false<\/code><\/pre><h3 class=\"wp-block-heading\">2. Invoice Backup<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">name contains 'invoice' and mimeType = 'application\/pdf' and modifiedTime > '2024-11-01'<\/code><\/pre><h3 class=\"wp-block-heading\">3. Media Management<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">mimeType contains 'video' and size > 104857600<\/code><\/pre><h3 class=\"wp-block-heading\">4. Data Sync (files modified within 7 days)<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">modifiedTime > '2024-11-16T00:00:00'<\/code><\/pre><h3 class=\"wp-block-heading\">5. Word File Processing<\/h3><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\">mimeType = 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document'<\/code><\/pre><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Comparison With Default Node<\/h2><figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Feature<\/strong><\/th><th><strong>Built-in Node (Default)<\/strong><\/th><th><strong>Shared Folder Node (Custom)<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Search in Shared Folders<\/strong><\/td><td>\u274c Not working<\/td><td>\u2705 Works perfectly<\/td><\/tr><tr><td><strong>Requires Folder ID<\/strong><\/td><td>\u2757 Required<\/td><td>\u2796 Not required (optional)<\/td><\/tr><tr><td><strong>Supports sharedWithMe<\/strong><\/td><td>\u274c No<\/td><td>\u2705 Yes<\/td><\/tr><tr><td><strong>Full Google Query support<\/strong><\/td><td>\u26a0\ufe0f Limited<\/td><td>\u2705 Full<\/td><\/tr><tr><td><strong>404 error when accessing folder<\/strong><\/td><td>\ud83d\udd25 Frequent<\/td><td>\ud83d\udee0\ufe0f Fixed<\/td><\/tr><tr><td><strong>Upload to Shared Folders<\/strong><\/td><td>\ud83d\udeab Limited<\/td><td>\u2705 Works well<\/td><\/tr><\/tbody><\/table><\/figure><hr class=\"wp-block-separator has-alpha-channel-opacity\"><h2 class=\"wp-block-heading\">Tips and Tricks<\/h2><h3 class=\"wp-block-heading\">Performance Tips<\/h3><ul class=\"wp-block-list\">\n<li>Use the field parameter to retrieve only necessary fields<\/li>\n\n\n\n<li>Limit the limit with a reasonable value (100-1000)<\/li>\n\n\n\n<li>Use specific queries instead of retrieving all<\/li>\n<\/ul><h3 class=\"wp-block-heading\">Search Tips<\/h3><ul class=\"wp-block-list\">\n<li>Use quotes for file names with spaces: <code data-no-translation=\"\">name contains \"my file\"<\/code><\/li>\n\n\n\n<li>Combine multiple conditions with <code data-no-translation=\"\">and<\/code>, <code data-no-translation=\"\">or<\/code><\/li>\n\n\n\n<li>Use <code data-no-translation=\"\">not<\/code> to exclude: <code data-no-translation=\"\">not trashed = true<\/code><\/li>\n<\/ul><h3 class=\"wp-block-heading\">Best Practices<\/h3><p class=\"wp-block-paragraph\">Backup important data before performing bulk operations<\/p><p class=\"wp-block-paragraph\">Test the query in the Google Drive UI before adding it to the workflow<\/p><p class=\"wp-block-paragraph\">Verify the correct folder ID<\/p><pre class=\"wp-block-code\" data-no-translation=\"\"><code data-no-translation=\"\"><\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Gi\u1edbi Thi\u1ec7uB\u1ea1n \u0111ang g\u1eb7p kh\u00f3 kh\u0103n khi l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c file \u0111\u01b0\u1ee3c chia s\u1ebb tr\u00ean Google Drive trong n8n? Node Google Drive m\u1eb7c \u0111\u1ecbnh kh\u00f4ng th\u1ec3 t\u00ecm ki\u1ebfm file trong shared folders?H\u00f4m nay t\u00f4i xin gi\u1edbi thi\u1ec7u n8n-nodes-shared-folder-google-drive \u2013 m\u1ed9t node n8n community m\u00e0 t\u00f4i \u0111\u00e3 ph\u00e1t tri\u1ec3n \u0111\u1ec3 gi\u1ea3i quy\u1ebft tri\u1ec7t \u0111\u1ec3 v\u1ea5n [&hellip;]<\/p>","protected":false},"author":1,"featured_media":33985,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,76,1205,1187],"tags":[],"class_list":["post-33981","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-google-marketing","category-n8n-marketing","category-xay-dung-thuong-hieu"],"acf":[],"rankmath_keywords":{"primary":"","secondary":[""]},"yoast_keywords":{"primary":"","secondary":[]},"yoast_focuskw":"","rankmath_focuskw":"","seo_keywords":{"primary":"","secondary":[""]},"_links":{"self":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/33981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/comments?post=33981"}],"version-history":[{"count":0,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/33981\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/media\/33985"}],"wp:attachment":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/media?parent=33981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/categories?post=33981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/tags?post=33981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}