Skip to content
Vaulthalla LogoVaulthalla

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

vh user
CommandArgumentsAliasesEffectSummary
lsreadList all users in the system.
<username>new, add, mkwriteCreate a new user.
<username>remove, rmdestructiveDelete an existing user by username.
<username>show, getreadGet information about a specific user by username.
<username>set, modify, editwriteUpdate 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>]
vh user list
OptionAliasesTypeDefaultSummary
-nlimitLimit the number of vaults displayed.
-ppageSpecify the page number when using --limit for pagination.
fieldSort by this field.
asc or descSort direction: asc or desc.
textOnly show entries matching this text.

vh user create

vh user create <username> --role name|id [--email <email>] [--linux-uid <id>]
vh user create
OptionAliasesTypeDefaultRequiredSummary
-rname or idYesRole name or ID to assign to the user.
-eemailNoEmail address of the user.
--uididNoLinux UID for system integration.

vh user delete

vh user delete <username> [--transfer-to <user>] [--yes]
vh user delete
OptionAliasesTypeDefaultSummary
userGive the user's vaults to this user instead of destroying them.
flagDelete without asking for confirmation.

vh user info

vh user info <username>

vh user update

vh user update <username> [options]
vh user update
OptionAliasesTypeDefaultSummary
new_nameNew username for the user.
-eemailEmail address of the user.
-rname or idRole name or ID to assign to the user.
--uididLinux UID for system integration.
--deactivateflagDeactivate the account and end its sessions.
--activateflagReactivate 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.

vh user mfa
CommandArgumentsAliasesEffectSummary
<username>info, showreadWhether the user must have MFA and why, their factors (no secrets), recovery codes left, and the recovery cooldown.
<username>destructiveReset 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>writeRequire 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]
vh user mfa status
OptionAliasesTypeDefaultSummary
flagPrint it as JSON.

vh user mfa reset

vh user mfa reset <username> [--reason <text>] [--yes]

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 reset
OptionAliasesTypeDefaultSummary
textWhy (kept in the audit trail; default: host recovery).
flagReset without asking for confirmation.

vh user mfa require

vh user mfa require <username> [--off]

vh user mfa require can't change your own account.

vh user mfa require
OptionAliasesTypeDefaultSummary
flagStop requiring MFA for this user.