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.
1.1 KiB
1.1 KiB
title
| title |
|---|
| Headless authentication |
Note
Creating service accounts requires a Premium license.
Service accounts are headless user accounts that cannot use the web UI to log in to Coder. This is useful for creating accounts for automated systems, such as CI/CD pipelines or for users who only consume Coder via another client/API. Service accounts do not have passwords or associated email addresses.
You must have the User Admin role or above to create service accounts.
Create a service account
CLI
Use the --service-account flag to create a dedicated service account:
coder users create \
--username="coder-bot" \
--service-account
UI
Navigate to Deployment > Users > New user, then select Service account as the login type.
Authenticate as a service account
To make API or CLI requests on behalf of the headless user, learn how to generate API tokens on behalf of a user.
