Skip to content

Setting up admin user

Mogens Heller Grabe edited this page Apr 29, 2021 · 2 revisions

When Fleet Manager has been installed for the first time, the database will be empty, and it will not readily be possible to log in. For that reason, an admin user can be (re)created by setting the two environment variables

  • FM_ADMIN__USERNAME
  • FM_ADMIN__PASSWORD

to the desired values. PLEASE NOTE THAT FM_ADMIN__USERNAME must be a valid email address!

Fleet Manager will detect these values during startup and set up a new team administrator with the given login credentials.

If a login already exists with the given username/email address, and the login is not a member of any teams, then a new team will be created for the user.

If a login already exists with the given username/email address, and the login IS a member of one or more teams, then the login is promoted to ADMIN for all those teams!

Once the administrator login has been (re)created, the two environment variables should be removed again to avoid messing with the configuration.

Should you lose your administrator password and lose access to Fleet Manager, you can use this mechanism to regain access to your Fleet Manager installation.

Clone this wiki locally