stratumctl users
Manage IAM users
stratumctl users [flags]Aliases: user
Subcommands
Section titled “Subcommands”stratumctl users create: Create a new userstratumctl users delete: Soft-delete a userstratumctl users get: Get a single userstratumctl users list: List usersstratumctl users set-password: Rotate a user’s passwordstratumctl users update: Update a user’s display name, state or emailstratumctl users whoami: Show the currently-authenticated user
stratumctl users create
Section titled “stratumctl users create”Create a new user
stratumctl users create [flags]Examples
Section titled “Examples”stratumctl users create --email alice@example.com --display-name "Alice Liddell"stratumctl users create --email bob@example.com --display-name "Bob" --password "$INITIAL_PASSWORD"| Flag | Type | Default | Description |
|---|---|---|---|
--display-name |
string | Display name (required) | |
--email |
string | Email (required) | |
--password |
string | Initial password (server generates one if empty) |
stratumctl users delete
Section titled “stratumctl users delete”Soft-delete a user
stratumctl users delete <user-id> [flags]Examples
Section titled “Examples”stratumctl users delete u-alicestratumctl users get
Section titled “stratumctl users get”Get a single user
stratumctl users get <id> [flags]Examples
Section titled “Examples”stratumctl users get u-alicestratumctl users get u-alice --output jsonstratumctl users list
Section titled “stratumctl users list”List users
stratumctl users list [flags]Examples
Section titled “Examples”stratumctl users liststratumctl users list --output jsonstratumctl users set-password
Section titled “stratumctl users set-password”Rotate a user’s password
stratumctl users set-password <user-id> [flags]Rotate the named user’s password.
The new password is read from –password, the STRATUM_NEW_PASSWORD env
var, or (for tty stdin) prompted without echo. Same conventions as
stratumctl login.
Examples
Section titled “Examples”stratumctl users set-password u-alicestratumctl users set-password u-alice --password "$NEW_PASSWORD"| Flag | Type | Default | Description |
|---|---|---|---|
--password |
string | New password (or set STRATUM_NEW_PASSWORD; or prompt) |
stratumctl users update
Section titled “stratumctl users update”Update a user’s display name, state or email
stratumctl users update <user-id> [flags]Apply a sparse PATCH to a user.
Suspending a user (–state suspended) immediately revokes the user’s active sessions + PATs server-side. Reactivating them (–state active) restores login but does NOT restore the revoked tokens — the user must log in again.
Changing the email (–email, install admins only) keeps the user’s sessions and PATs; the next login uses the new address.
Examples
Section titled “Examples”stratumctl users update u-alice --display-name "Alice L."stratumctl users update u-alice --state suspendedstratumctl users update u-alice --email alice@new.example.com| Flag | Type | Default | Description |
|---|---|---|---|
--display-name |
string | New display name (omit to leave unchanged) | |
--email |
string | New sign-in email (install admins only; omit to leave unchanged) | |
--state |
string | New state: active|suspended (omit to leave unchanged) |
stratumctl users whoami
Section titled “stratumctl users whoami”Show the currently-authenticated user
stratumctl users whoami [flags]Examples
Section titled “Examples”stratumctl whoamistratumctl whoami --output json