Transfer credentials to other n8n instances using a Multi-Form

Nodes

8a186e28-5091-41b3-879f-0260e2d555823b9f1b78-6b80-4575-aa6c-9669870003892e3e39e3-0e17-4fae-9ac5-9ee31f9711edf8cb31dc-fafe-49d3-8399-f520741f80ada0d93eb1-bb23-4c69-815f-fe01a740b02c+1

Categories

Created by

MaMario

Last edited 56 days ago

Purpose

This workflow allows you to transfer credentials from one n8n instance to another.

Image Image

How it works

  • A multi-form setup guides you through the entire process
  • You get to choose one of your predefined (in the Settings node) remote instances first
  • Then all credentials of the current instance are being retrieved using the Execute Command node
  • On the next form page you can select one of the credentials by their name and initiate the transfer
  • Finally the credential is being created on the remote instance using the n8n API. A final form ending indicates if that action succeeded or not.

Setup

  • Select your credentials in the nodes which require those
  • Configure your remote instance(s) in the Settings node
    • Every instance is defined as object with the keys name, apiKey and baseUrl. Those instances are then wrapped inside an array. You can find an example described within a note on the workflow canvas.

How to use

  • Grab the (production) URL of the Form from the first node
  • Open the URL and follow the instructions given in the multi-form

Disclaimer

  • Please note, that this workflow can only run on self-hosted n8n instances, since it requires the Execute Command Node.
  • Security: Beware, that all credentials are being decrypted and processed within the workflow. Also the API keys to other n8n instances are stored within the workflow.
  • This solution is primarily meant for transferring data between testing environments. For production use consider the n8n enterprise edition which provides a reliable way to manage credentials across different environments.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!