Safest way to recover owner access on Docker self-hosted n8n 1.115.3 without risking workflows or credentials

Hi,

I’m trying to recover access to an old self-hosted n8n Community Edition instance.

My setup:

  • n8n version: 1.115.3
  • Running via: Docker Desktop on Windows
  • Container: n8n_gmail
  • Image: n8nio/n8n:latest
  • Port: 5678:5678
  • Persistent volume: n8n_gmail:/home/node/.n8n
  • Database: likely SQLite (default; no DB_TYPE or Postgres environment variables configured)
  • The container is running, and http://localhost:5678 opens the sign-in page normally.

I no longer remember the owner password.

When I click “Forgot my password”, n8n says:

Please contact your admin. n8n isn’t set up to send email right now.

I have already backed up the Docker volume before making any changes.

I have also confirmed that this is a self-hosted Community Edition instance, not n8n Cloud.

My priority is to preserve:

  • all existing workflows
  • credentials
  • workflow ownership/associations
  • existing instance data

I know the documented recovery command is:

n8n user-management:reset

Before using it, I want to confirm the safest approach for n8n 1.115.3.

Questions:

  1. Does user-management:reset preserve all workflows and credentials in this version?
  2. Does it delete/recreate the existing owner account, or only clear its login fields?
  3. If I want to preserve the existing owner identity exactly, is configuring SMTP and using the normal password-reset flow safer?
  4. Is there any supported way to reset only the existing owner password without resetting user management?

I do not want to delete or recreate the Docker volume or the instance.

Thank you.

Hey @haekim7111, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Anshul_Namdev, @Parintele_Damaskin, @mechanizedgrowth - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hey @haekim7111 Welcome to the n8n community
I think on 1.115.3 the reset keeps everything you listed. I read that version’s command: it keeps the existing owner row (same user ID, same personal project), moves every workflow and credential into that owner’s personal project, deletes any other users, and blanks the owner’s name, email and password. Workflow and credential rows themselves aren’t touched, and neither is your encryption key, so credentials still decrypt. If you’re the only user, everything already sits in your personal project and nothing moves.

Run docker exec -u node -it n8n_gmail n8n user-management:reset, then restart the container. The setup screen you get writes onto that same owner row, so enter your old email and a new password and the identity is unchanged.

SMTP would keep things identical too, but adding the N8N_SMTP_* variables means recreating the container. If you go that way, pin n8nio/n8n:1.115.3, since latest is 2.x now. None of the CLI commands in 1.115.3 changes just a password.

Hi @haekim7111, for your requirement to preserve ownership associations exactly, I’d use SMTP and the normal password-reset flow. In 1.115.3 it updates the password on the existing user. The CLI reset preserves an existing owner ID and the workflow/credential data, but transfers ownership from other projects and deletes other users.

Add your provider’s SMTP settings to the current Docker configuration: N8N_EMAIL_MODE=smtp, N8N_SMTP_HOST, N8N_SMTP_PORT, N8N_SMTP_USER, N8N_SMTP_PASS, N8N_SMTP_SENDER, and the matching N8N_SMTP_SSL value. Recreate n8n_gmail using n8nio/n8n:1.115.3, keeping n8n_gmail:/home/node/.n8n and any existing N8N_ENCRYPTION_KEY unchanged. Then use Forgot my password with the original owner email. There is no supported password-only CLI command in that release.