Files
Nick Vigilante 644519e1f0 docs(docs/admin/users): reformat to one sentence per line (#30693)
Reformats the user administration docs under `docs/admin/users` to one
sentence per line, as the [docs style
guide](https://github.com/coder/coder/blob/main/docs/.style/style-guide/formatting.md#one-sentence-per-line)
requires. Hard-wrapped paragraphs are unwrapped and lines holding
several sentences are split, so a later edit to one sentence shows up as
a one-line diff.

Only whitespace inside paragraphs and list items changes, and the
rendered pages are the same. Comparing every changed file against `main`
word for word, ignoring whitespace and blockquote `>` markers, finds no
differences. `git diff --word-diff` is easier to read than the line
diff.

Applied with an in-progress formatter, limited to pages listed in
`docs/manifest.json` and excluding generated reference docs. This is one
of a batch of PRs that split the docs by area (13 files changed, 362
insertions(+), 553 deletions(-)).

---
🤖 Built with AI assistance.
2026-10-16 17:58:18 -04:00

1.3 KiB

title
title
Password authentication

Coder has password authentication enabled by default. The account created during setup is a username/password account.

Disable password authentication

To disable password authentication, use the CODER_DISABLE_PASSWORD_AUTH flag on the control plane.

This blocks password sign-in and password resets for all users, including owners. Before you enable it, make sure at least one owner can sign in through your identity provider.

Restore the Owner user

If you remove the admin user account (or forget the password), you can run the coder server create-admin-usercommand on your server. If password authentication is disabled, unset CODER_DISABLE_PASSWORD_AUTH and restart the server first, or the new admin will not be able to sign in.

Important

You must run this command on the same machine running the control plane. If you are running Coder on Kubernetes, this means using kubectl exec to exec into the pod.

Reset a user's password

An admin must reset passwords on behalf of users. This can be done in the web UI in the Users page or CLI: coder reset-password