Skip to content
Start free

Admin Users

Open in ClaudeOpen in ChatGPT

An admin user can sign in to the admin dashboard at /admin on your admin domain (DOCSPRING_ADMIN_DOMAIN_NAME, which defaults to your DOCSPRING_DOMAIN_NAME). There they manage every account, user and template on the install, and see its usage and background jobs.

On a new install, the release command creates the first admin user from these settings:

  • DOCSPRING_ADMIN_EMAIL: their email address.
  • DOCSPRING_ADMIN_PASSWORD: their password. Generate one with openssl rand -hex 16.
  • DOCSPRING_ADMIN_NAME (optional): their name.

It also creates an account for them, named “Test Account”, which you can rename in its settings. Sign in, change the password. The release command reads these settings only to create this first user, so you can then remove DOCSPRING_ADMIN_EMAIL and DOCSPRING_ADMIN_PASSWORD from your settings. Remove both: our Helm chart refuses an admin email without a password.

Admin users have one of three roles, which you set with Role on the user’s page in the admin dashboard:

RoleWhat they can do
OwnerEverything. The first admin is an Owner.
DeveloperEverything except deleting records, managing other admin users, and the usage and finance reports.
SupportThe same as a Developer, except for the license pages.

A user with the role User isn’t an admin. These roles only apply to the admin dashboard: in the app, everyone in an account has the same access, except that only the account’s owner can change or remove its other users.

Keep at least two Owners, so that one person leaving doesn’t lock everyone out of managing admins.

Create a new admin user from the command line: run run_as_deploy rake db:seed with the same image and settings as your services, but with DOCSPRING_ADMIN_EMAIL and DOCSPRING_ADMIN_PASSWORD set to a new user’s. With Docker Compose:

docker compose run --rm -e DOCSPRING_ADMIN_EMAIL=new-admin@example.com \
-e DOCSPRING_ADMIN_PASSWORD='<a new password>' tasks run_as_deploy rake db:seed

It creates the user as an Owner, in a new “Test Account”, and does nothing if a user with that email address already exists. To make an existing user an Owner instead, open a Rails console (run_as_deploy rails console) and run:

user = User.find_by!(email: 'someone@example.com')
user.add_role(:admin)
user.add_role(:owner)
user.add_role(:developer)

Run either one where your platform runs one-off commands: docker compose run --rm tasks ..., kubectl exec into a web pod, ECS Exec, convox run command ... or aptible ssh.