/n8n-tutorials

How to reset admin credentials in n8n?

Learn how to safely reset admin credentials in n8n with simple steps to regain access and restore control of your workflow automation.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free consultation

How to reset admin credentials in n8n?

If you need to reset the n8n admin user, the reliable way is to clear (delete) the authentication rows from the database. After that, when you open the n8n UI again, n8n will behave as if no admin user exists and will prompt you to create a new one. This works for all real deployments (Postgres, MySQL, and SQLite).

 

How to reset the admin credentials

 

The core idea: n8n stores the admin user in the database table called user. If you remove the existing user entry, n8n thinks it is a fresh setup and asks you to create a new admin account.

  • This does not delete workflows, credentials, or executions.
  • You only remove the user authentication record.
  • After restart, you immediately get the “Create User” screen again.

 

Step-by-step: using Postgres (most common production setup)

 

-- Connect to your Postgres DB (for example via psql)
-- Then delete all users

DELETE FROM "user";

Then restart your n8n instance (Docker restart, systemctl restart, or n8n restart depending on your deployment). When you open the UI, you’ll get the setup screen again and create a new admin user.

 

Step-by-step: using SQLite (common in small or local installs)

 

// Enter the SQLite CLI:
sqlite3 ~/.n8n/database.sqlite

// Then run:
DELETE FROM user;
.quit

Restart n8n. Open the UI. You will be asked to create a new admin user.

 

Step-by-step: using MySQL

 

DELETE FROM user;

Restart n8n, then open the UI and create a new admin user.

 

If you don’t know which database you're using

 

  • In Docker: check your environment variables. Look for DB\_TYPE. If you see postgresdb, mysqldb, or sqlite, that tells you which one you have.
  • In n8n Cloud: you cannot access the DB directly, so instead use the “Reset login link” from the Cloud dashboard.

 

Why this works (quick explanation)

 

n8n only allows creating the first admin user when the user table is empty. In normal operation, this table contains exactly one user (the owner/admin). Removing it triggers the initial setup flow again. All workflows, saved credentials, and executions are stored in other tables, so they stay untouched.

This is the cleanest and production-safe way to reset admin access.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022