How to Handle Multi-Tenancy in n8n with User-Specific Credentials?

Hi all,

I’m building an app with ~50 users. Each user connects their own Gmail and Slack accounts via OAuth.

Simple example:
I have one n8n workflow that sends an email from the user’s own Gmail and then posts a message in their own Slack workspace.

So when User A runs the workflow, it uses their Gmail + Slack.
When User B runs it, it uses their Gmail + Slack.
Same workflow, but different credentials per user.
I store all the user credentials in my own GCP database.

My questions:

  • Is this possible in n8n?
  • Can I inject the right credentials at runtime?
  • Should I use separate credential sets, environments, or something else?

Would love to hear if anyone’s done this or has a recommended pattern!

Thanks :pray:

Unless you Enterprise this is against TOS

Thanks Daniel - what is this called per n8n? I can’t seem to find anything about this… @Daniel_Lamphere