Multitenant workflow

I have the follow scenario. I wanna have an only one workflow to support multitenant to integrate with servicenow. Each customer will have their own credentials ( can be store on AWS secret manager ) I couldn’t find a way to dinamically created a credential, for example I can send some tenant id when I invoke the workflow through HTTP, and make some expresion to parametrize this expresion {{ $secrets.. }} when I set the secret name in credential item.

Information on your n8n setup

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

You can use the n8n API to create credentials

Here’s an example of using them at runtime

but In my case the service now credential include user and password for example I couldn’t send it through a form or HTTP request. should be a more secure way

How many clients do you have?

You could set up a node that determines which customer you are working with. Use their tenant ID to confirm that, then authenticate with a node, then have the downstream nodes use that for the rest of the workflow.

If you have a sample workflow, it would help to give you ideas and debug.

With enteprise u have this feature

Yes I know, but as far as I research the couldn’t be parametrized. You should use {{ $secrets.. }} to stablish the secret, but the can’t be set with a value from a previous step


something like that works perfect, but we can have arround 100 customer, and each time that we add a customer we should modify the workflow