vh user
Reference for vh user - create, inspect, update and delete application users, and manage their multi-factor sign-in.
vh user manages application users: the accounts people sign in to the web console with, and that Linux users are
bound to (--linux-uid; the option has that name on macOS too) so their vh commands act as them. Aliases include
vh users and vh u.
1vh user create <username> --role <role-or-id> [--email <email>] [--linux-uid <uid>]2vh user info <username-or-id>3vh user update <username-or-id> --name <new-name> --email <email> --role <role-or-id> --linux-uid <uid>4vh user delete <username-or-id>
The built-in super_admin role and user are protected from normal create, update, and delete operations. See
Users, Groups And Roles.
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls | read | List all users in the system. | ||
<username> | new, add, mk | write | Create a new user. | |
<username> | remove, rm | destructive | Delete an existing user by username. | |
<username> | show, get | read | Get information about a specific user by username. | |
<username> | set, modify, edit | write | Update properties of an existing user. | |
| Multi-factor sign-in of a user: status, require, and reset (host recovery). |
vh user list
vh user list [--limit <limit>] [--page <page>] [--sort <field>] [--direction asc|desc] [--filter <text>]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-n | limit | Limit the number of vaults displayed. | ||
-p | page | Specify the page number when using --limit for pagination. | ||
field | Sort by this field. | |||
asc or desc | Sort direction: asc or desc. | |||
text | Only show entries matching this text. |
vh user create
vh user create <username> --role name|id [--email <email>] [--linux-uid <id>]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
-r | name or id | Yes | Role name or ID to assign to the user. | ||
-e | email | No | Email address of the user. | ||
--uid | id | No | Linux UID for system integration. |
vh user delete
vh user delete <username> [--transfer-to <user>] [--yes]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
user | Give the user's vaults to this user instead of destroying them. | |||
flag | Delete without asking for confirmation. |
vh user info
vh user info <username>vh user update
vh user update <username> [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
new_name | New username for the user. | |||
-e | email | Email address of the user. | ||
-r | name or id | Role name or ID to assign to the user. | ||
--uid | id | Linux UID for system integration. | ||
--deactivate | flag | Deactivate the account and end its sessions. | ||
--activate | flag | Reactivate a deactivated account. |
vh user mfa
1vh user mfa status <username-or-id> [--json]2vh user mfa reset <username-or-id> [--reason <text>] [--yes]3vh user mfa require <username-or-id> [--off]
Run these as the Linux user bound to your own account (for yourself) or to an account that may reset the target's
password; never with sudo (root is refused). A super admin's MFA only a super admin may reset.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<username> | info, show | read | Whether the user must have MFA and why, their factors (no secrets), recovery codes left, and the recovery cooldown. | |
<username> | destructive | Reset the MFA of a user who lost every factor: their passkeys and authenticator apps are disabled, recovery codes voided, every session signed out and the key-backup grants of their paired devices revoked (the devices stay paired). | ||
<username> | write | Require MFA for one user whatever the policy level (--off: stop requiring it; the policy may still). |
vh user mfa status
vh user mfa status <username> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
flag | Print it as JSON. |
vh user mfa reset
The host recovery for an account that lost every second factor, including the sole super admin: its passkeys and authenticator apps are disabled, its recovery codes voided, every session signed out and the key-backup grants of its paired devices revoked (they stay paired). It sets up a new factor at its next sign-in, and sensitive actions wait for the recovery cooldown. See Multi-Factor Sign-In.
vh user mfa require
vh user mfa require <username> [--off]vh user mfa require can't change your own account.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
flag | Stop requiring MFA for this user. |
