Creating a default user on docker init

Describe the problem/error/question

starting a new n8n instance in docker always requires a new user

Information on your n8n setup

  • n8n version: 1.26
  • Database (default: SQLite):
  • **Running n8n via Docker

We’re using n8n as a component of our stack, and during development want to provide each developer with their own n8n instance to use

We were originally able to use - N8N_USER_MANAGEMENT_DISABLED=true in the compose file , but that now seems not to work, and every time a developer starts a workspace they now have to create a user

Is it possible to automate the user creation with a data file or something ? At the moment we’re having to use the /rest/owner/setup api but would much prefer a default way of providing a default user on startup for the first time

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @jmls,

If you keep the database between changes you won’t need to make new users but we don’t have an api to automatically create an initial user.

You might be able to use a frontend hook to work some magic although I have not tried this.

1 Like

we could always use the rest/owner/setup api , but then need to wait for/ know that the n8n process is running