Skip to content

Create a user account

Two alternatives, depending on the user’s autonomy :

  • Non-technical (new to computers): ask them as little as possible.
  • Technical (used to computer tools): they define their own access.
TypeDeclarationAccess
Linuxconfig.yamlLinux machines (posix), services and vault, Matrix
ServicesVaultwarden, Kanidmservices and vault, Matrix
Matrix friendMatrix tokenMatrix only
SecretNon-technical userTechnical user
Linux sessionSet by the adminEntered by the user
Kanidm identitySet by the admin, stored in the vaultSet by the user
Master passwordSet by the userSet by the user
Vault 2FAOptionalAt the user’s discretion
Forgotten master passwordThe admin resets itLost vault*

Common to both alternatives : declare, attach and deploy the user. Deploying the HCS also creates their Kanidm account.

The user only remembers their master password : the administrator stores all their other access in a shared vault collection.

  1. Vaultwarden collection

    In the organization, create a collection named alice.

  2. Prepare the access

    Fenêtre de terminal
    just invite alice
    • Linux session (Linux account only): enter a generated password in an item in the collection.
    • Displays the welcome card, a Kanidm link valid for 1 h and the list of remaining tasks.
    • Then validate and deploy the password.
  3. Kanidm identity

    • Open the link: there, set a Bitwarden-generated password, a key and a TOTP code.
    • Store the whole thing in an item in the collection.
  4. Invite the user to the organization (Members → Invite member)

    • Use the email address defined in config.yaml.
    • Give them write access to the alice collection.
  5. The user receives the email and the welcome card

    They create their vault by setting their master password. This is their only action.

  6. Confirm the member (Members → Confirm)

    The collection items appear in their vault.

  7. Install and configure Bitwarden on their browsers and smartphone.

    On Linux machines, access is pre-defined. On other hosts, the user will need a little help to set up their access.

The administrator provides the entry points and the user defines their access.

  1. Prepare the access

    Fenêtre de terminal
    just invite alice advanced
    • Linux session (Linux account only): the user types their password.
    • Remotely, they send their fingerprint → just invite alice a '<fingerprint>'.
    • Sends the invitation to the vault.
    • Displays the welcome card to forward to them, with a Kanidm link valid for 24 h and their QR code.
  2. The user follows the card

    • They create their vault and their 2FA.
    • They define their Kanidm identity: password, TOTP, access keys.
  3. YubiKey (optional)

    Enroll with just yubikey alice and the user’s key, who enters their own PIN.

  4. User settings

    The user can install Bitwarden on their browsers and smartphone.

A few useful pieces of information and tips to know.

Run just invite alice again (or advanced): an already defined access is only replaced after confirmation. See also Reset a user’s password.

just invite : Vaultwarden connection refused?

Section titled “just invite : Vaultwarden connection refused?”

Vaultwarden’s /admin panel only responds from the LAN and the tailnet. Run just invite from a machine on a zone, or with the tailnet active.

Enable emergency access 🡕: in their vault, the user opens Settings → Emergency access and invites a trusted contact, with the Takeover access. Once the invitation is accepted, they confirm this contact.

Other prevention mechanisms exist 🡕 : password hint, emergency access via a trusted contact, login with a known device, alternate passkey…

By default, yes. A TOTP code or an access key is required. Stored in an item, the key or the TOTP can be offered by Bitwarden autofill.

It is created on first login in Element (IDM button) : nothing to prepare.

Choosing “self-hosted” in Bitwarden is required. By default, the Bitwarden client connects to bitwarden.com. Enter the URL of the network’s Vaultwarden, then your master password.

Yes! It is even recommended: it is simpler and more secure.

A YubiKey replaces the session password with a touch. It is the only access the vault cannot fill in, since the session opens before it.