Listening for Document Updates and Creations in Google Drive for Multiple Users

Hello n8n Community,

I’m working on a project where I need to monitor Google Drive for document updates and creations across multiple user accounts. Specifically, I want to set up workflows in n8n that listen for changes not just in one Google Drive, but across several different users’ Drives.

My goals are:

  • Detect when a document is created or updated in any of the specified users’ Google Drive accounts.
  • Trigger specific workflows in n8n based on these events.
  • Manage authentication for multiple Google accounts within n8n efficiently.

Challenges I’m facing:

  • I’m unsure how to set up n8n to listen for Drive events from multiple users simultaneously.
  • Managing multiple OAuth credentials for different Google accounts seems complex.
  • I want to avoid setting up separate workflows for each user if possible.

Any guidance, tips, or examples would be greatly appreciated!
Thank you in advance for your help!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Abdullah_Amer,

you would have to set up a separate credential for each Google Drive per user. You can then use that in the Google Drive Trigger node and set the folder you want to watch. Unfortunately you cannot set multiple folders, so for now you will have to add a node for each folder you want to watch.

You could have all of these Trigger nodes in one workflow for simplicity. They will each trigger independently. (Don’t forget to activate the workflow!)

Here’s an example:

2 Likes

Thanks @ria .All you mentioned is helpful.
Regarding to moving document to trash is there listener for that ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.