Skip to content

"Create user" button is hidden when CODER_DISABLE_PASSWORD_AUTH=true #9172

Closed
@bpmct

Description

@bpmct

Background

We recently added the ability to create non-password accounts in #9000. Before this, you could only create password accounts from the UI. This helps users manually onboard OIDC users (while disabling signups for the wider organization)

Current behavior

Coder hides the "New user" button on the /users page when https://coder.com/docs/v2/latest/cli/server#--disable-password-auth is set to true.

image

Workaround

Admins can manually navigate to the /users/create endpoint (e.g. https://coder.example.com/users/create) in their browser to create users.

Desired behavior

Coder continues to show the "New user" button since the admin can create non-password accounts such as Login Type: OIDC (some deployments), Login Type: GitHub (some deployments), and Login Type: "None" (all deployments)

Metadata

Metadata

Assignees

Labels

must-doIssues that must be completed by the end of the Sprint. Or else. Only humans may set this.s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions