How should workflow ownership be transferred when moving an n8n workflow from development to production?

Hi everyone,

I am preparing an n8n workflow for deployment to a company production server.

The workflow is currently developed in my personal n8n instance/project and has a workflow ID, project ID, creator ID, and sharing/ownership metadata in the exported JSON.

I want to store the workflow JSON in Git and then import it into a separate production n8n instance used by the company.

My questions are:

  1. Which fields from the exported workflow JSON should be removed before committing it to Git so that personal/development ownership information is not carried over?

  2. Should the shared section, including the personal projectId and creatorId, be removed?

  3. Should the original workflow id also be removed so that the production n8n instance creates a new workflow ID?

  4. After importing the workflow into production, what is the correct way to assign/move the workflow to the company’s n8n project so that the company/project becomes the owner instead of my personal development project?

  5. Is there an official recommended procedure for handling workflow ownership when promoting workflows from development to production?

  6. Are there any other n8n-specific metadata fields that should not be committed to Git because they are instance-specific?

I am not trying to transfer my personal n8n account to another user. I only want to deploy the workflow definition to a separate company n8n instance while ensuring that the production instance/project owns and manages the workflow correctly.

Thanks in advance for any guidance.

1 Like

Ownership lives in the target instance and not in the workflow definition.

Nothing here is strictly required but for clean diffs I would strip the following. The “shared” block (personal projectId/creatorId) is ignored or irrelevant on import, strip it from Git if you want clean diffs. Drop the “id” if you want prod to generate a new one. If the same ID already exists on the target, importing overwrites it. Import straight into the company project: n8n import:workflow --input=wf.json --projectId=<company_project_id>. Or just import via the UI while you are inside that project. It is worth removing the “versionId”, “pinData”, “meta.instanceId” as well. Credential IDs in nodes won’t match prod, so re-link them after your import.

Finally if you are on Enterprise, Source Control (Git) handles push/pull per project natively.

1 Like

the cleanest pattern for workflow ownership transfer is maintaining separate production project spaces and using credential sharing rather than individual user accounts.

exporting workflow json and committing it to version control before deploying into the target production environment ensures you have an audit trail and rollback capability if production variables differ.

One extra check before committing the JSON: inspect node parameters and pinned data, not just the ownership fields. The official export guide warns that exports include credential names/IDs, and HTTP Request nodes imported from cURL can contain authentication headers.

After import, I’d test the handoff with a company user: can they open/edit the workflow, use the production credentials, and run a harmless test without your personal account? Also check sub-workflow references and the production webhook URL before enabling triggers.

That separates “the workflow imported” from “the company can actually maintain it”. Keep the version and deployment method in the README, since UI imports and CLI imports can behave differently.