Passing credentials as variables

This is a very simple workflow thatcan be simply merged into one, and have different different triggres, and s set of credential variables that we can dynamically pass to the last Gmail node.

I now have to create multiple workflows, which is not that pretty to be honest. This is a bummer, and a major limitation in scalability.

How do we scale such a workflow is we have 100 users? Create 100 workflows? That is not scalable at all.

Is it posible to have credentials as variables in workflows?

This feature has been long overdue

There are currently two solutions for this:

  1. Use this community node: n8n-nodes-run-node-with-credentials-x - npm - credentials can be created using the n8n API
  2. Use custom auth in an HTTP request, like in this example: Turn Emails into AI-Enhanced Tasks in Notion (Multi-User Support) with Gmail, Airtable and Softr | n8n workflow template

This should also be doable with OAuth by adding a few extra steps.

2 Likes

Dont forget to vote on your own feature requests. :wink:
Also this is a duplicate of this feature request, so please leave a vote there :slight_smile: : Allow expression for credential selection

Closing this. :slight_smile: