Skip to content

Chapter 5: Admin Training

ZHL-Zack edited this page Apr 2, 2023 · 10 revisions

Summary of Chapter

When it comes to new services, I like to summarize the administrative tasks as my documentation can be a bit overwhelming. This chapter will summarize the administrative tasks for BitWarden.

This chapter is broken down into these sections:

Software Maintenance

How-To Backup BitWarden

# Password file location: /opt/bitwarden/password_file
# Final Backup Location: /backups
# Retention (days): 14
# Log file location: /opt/bitwarden/backup-bitwarden.log
sudo /usr/bin/pwsh -File "/opt/bitwarden/backup-bitwarden.ps1" -PasswordFile /opt/bitwarden/password_file -FinalBackupLocation /backups -Incremental -days 14 -LogFile /opt/bitwarden/backup-bitwarden.log
  • To perform a full backup, execute the following command:
# Password file location: /opt/bitwarden/password_file
# Final Backup Location: /backups
# Retention (days): 14
# Log file location: /opt/bitwarden/backup-bitwarden.log
 
sudo /usr/bin/pwsh -File "/opt/bitwarden/backup-bitwarden.ps1" -PasswordFile /opt/bitwarden/password_file -FinalBackupLocation /backups -All -days 14 -LogFile /opt/bitwarden/backup-bitwarden.log

How-To Restore from a Backup

# Update Password file to your password file's location
# Update the BackupFile to the location of your backup file
sudo /usr/bin/pwsh -File "/opt/bitwarden/restore-bitwarden.ps1" -PasswordFile /opt/bitwarden/password_file -BackupFile '/backups/BitWardenBackup-2022-12-26_23-24-39.tar.gpg'

How-To Update BitWarden

# Update Password file to your password file's location
# Update the finalbackuplocation to your server's backup location
# Update the logfile to the location of this script's logfile
sudo /usr/bin/pwsh -File "/opt/bitwarden/update-bitwarden.ps1" -PasswordFile /opt/bitwarden/password_file -FinalBackupLocation /backups -LogFile /opt/bitwarden/update-bitwarden.log

User Management

How-To Add New Users

The scenario assumes you need to adjust the number of licenses. You may set a predefined number of users per month, but I tend to save costs as much as I can by updating our licenses as we need to.

Step 1. Adjust User Count

  • This is currently done through BitWarden's online vault. You MUST have administrator access to your BitWarden Cloud instance.
  • Log into the online vault: https://vault.bitwarden.com
  • Once signed-in, click Organization - Billing - Subscription:

image

  • Update the Subscription Seats amount to your liking and click Save (in my example, I'll adjust it from 1 seat to 2 seats):

image

  • Once updated, scroll and download the license under Self-hosting:

image

  • Input your Installation ID. This can be found in two locations:

    • From the admin panel (requires your account to be an admin within BitWarden's Global Environments): https://bitwarden.example.com/admin
    • From the Global Environments File on the server (sudo nano /opt/bitwarden/bwdata/env/global.override.env)
  • Click Submit

  • Once downloaded, proceed to Step 2.

Step 2. Upload Subscription License to Self-Hosted Instance

image

  • Upload your license file from Step 1 and click Submit:

image

  • You should now be able to add another user to your self-hosted instance.

Step 3. Invite New User

  • This step assumes you have enough licenses to add another user. If not, see Steps 1 & 2.
  • Log into your self-hosted instance: https://bitwarden.example.com
  • Click Organizations - Manage - Memebers - Invite User:

image

* Email Address: Input the person's email address, it must be a real email as they will have to verify it upon creation.
* User Type:
Role Description
User Assign this role if the person needs access to a collection. They'll be able to add items to their assigned collection(s).
Manager Assign this role if you want this person to be able to add or remove people from their assigned collection(s).
Admin Assign this role if you want this person to be able to manage the organization access, all collections, members, reporting, and security settings.
Owner Assign this role if the individual will be the sole owner of this application. This role will have the ability to control all aspects of the software.
Custom You can create your own custom role with this selection.
* Access Control: Select what collection this user has access to (e.g., Maybe the person works in HR and they need access to the 'HR' collection). You can also select if they should have access to passwords or read-only for said collection. 
* Click Save (Upon click, the person should receive an email). 
  • In my example, I'll be creating a user that has access to the 'default collection':

image

image

  • Once invited, you should see the new user appear in your members list:

image

Step 4. Assist End-User

  • Notify the person they should have received an email regarding their new BitWarden account and to click the 'Join Organization Now' button:

image

  • Upon joining the organization, they'll need to select 'Create account':

image

  • They'll need to do the following upon account creation:
    • Input their Name
    • Create a master password
    • Retype said master password
    • Type a master password hint
    • Click Create Account

image

  • Upon creation, they'll need to login:

image

  • After login, they'll need to verify their email by clicking the 'Send Email' in the top-right:

image

  • They will need to go back into their email and click the 'Verify Email Address Now' button in their email:

image

Step 5. 2FA Setup

  • NOTE: if you require 2FA upon sign-in for your organization, the end-user must go through the 2FA setup before joining your organization.
  • This will vary on your organization as you may use Yubikeys, DUO, or some other form of 2FA. I'll demonstrate setting up 2FA via email from the end-user's POV
  • Click the User Profile icon in the top-right and select 'Account Settings':

image

  • Click Security - Two-step login:

image

  • For this example, select Manage next to Email:

image

  • Input Master Password to confirm the 2FA:

image

  • Click 'Send email':

image

  • A verification email should have been sent with a 6-digit verification code, like so:

image

  • Input the code to enable 2FA:

image

  • Click Close:

image

Step 6. Confirm New User

  • Once the person has verified their email address. You should receive an email notifying you of said verification. Once verified, browse to Organizations - Manage - Members and select Confirm on the new user's account:

image

  • You will be shown a pop-up regarding verifying the user's fingerprint. Click confirm.
  • Once confirmed, your end-user will be emailed of the confirmation they have access to your organization:

image

  • They may need to logout/login to see their new collections.
  • Once logged-in, they should see your organization on the left-hand side:

image

How-To Setup Emergency Access

  • In case an employee was hit by a bus, or is no longer with the company. Emergency access will need to be configured if they have two-factor deployed. You WILL NOT have access to their passwords if two-factor is enabled. Emergency access is a way to bypass that.
  • I'll be demonstrating how to setup emergency access from the end-user's POV
  • Log into BitWarden: https://bitwarden.example.com (replace example.com with your domain)
  • Click the User Profile icon in the top-right and select Account Settings:

image

  • Click Emergency Access on the left-hand side:

image

  • Click Add emergency contact:

image

  • Input your supervisor's email address, select Takeover, and have the wait time be 7 days (I use 7 days in case an individual was somehow hacked, and this gives us a few days to make sure their account is safe):

image

  • The supervisor should receive an email notifying them of said emergency access:

image

  • The supervisor will need to input their master password to confirm:

image

  • The supervisor can verify the confirmation by clicking the user profile in the top-right and selecting 'Account Settings':

image

  • Click Emergency Access and verify your employee is showing in your Designated as emergency contact list:

image

How-To Create a Collection

  • Collections are kind of like file shares. You can set up collections to where a department may have their own collection and one or many people have access to more than one collection.
  • Depending on how large your organization is, you may want to use groups to manage a user's access to collections. I do this regardless of the size of the organization. So, if I have an HR collection, I would create an HR Group for said collection. So, if someone were to ask me for access to a collection, I'll just add the user to the group affiliated with said collection.

Step 1. Create Collection

  • Browse to your Self-Hosted instance: https://bitwarden.example.com (replace example.com with your domain)
  • Click Organization - Manage - Collections:

image

  • Click New Collection:

image

  • In my example, I want to create an 'IT' collection. So, I'll input the name 'IT' and click Save:

image

Step 2. Create Group Affiliated W/ Collection

  • Browse to your Self-Hosted instance: https://bitwarden.example.com (replace example.com with your domain)
  • Click Organization - Manage - Groups:

image

  • Click New Group:

image

  • In Step 1, I created an IT Collection. I would like to create an IT group affiliated with said collection.
  • I'll input the name 'IT' and select the IT collection under Access Control, like so:

image

Step 3. Add Users to Group

  • Once the group has been created, you can now add the individuals to said group that require access to your new collection.
  • Click Organizations - Manage - Members:

image

  • Select the user that will be added to your newly created group by selecting the user and clicking Groups:

image

  • I want this user added to my 'IT' group that I created in Step 2:

image

  • They may need to logout/login to see their new collection.

How-To Add User to Collection

  • As mentioned in 'How-To Create a Collection', I use groups to manage my collection access. So, the user will need to be added to the affiliated group with said collection.
  • Browse to your Self-Hosted instance: https://bitwarden.example.com (replace example.com with your domain)
  • Click Organizations - Manage - Members:

image

  • Select the user that require their group membership to be updated and select Groups:

image

  • I want this user added to the 'IT' group that has access to the 'IT' collection:

image

  • Click Save
  • The user may need to logout/login to see the new collection.

Software Management

  • this section is for individuals who need to aid end-users in deploying software to their devices (e.g., computers, phones, etc).
  • Yes, you can do this with an MDM but some of us work on little to zero budgets.

How-To Setup BitWarden on Mobile Device

Step 1. Download BitWarden App from App Store

  • Download BitWarden from their device's App Store

Step 2. Configure Settings for Self-Hosted Instance

  • Once installed, open the App
  • You cannot take screenshots within the application, which is unfortunate. Anyways, click the gear icon in the top-right corner
  • Server URL: https://bitwarden.example.com (replace example.com with your domain)
  • Click Save

Step 3. Login

  • Once settings have been updated, have the end-user input their email address & Master Password
  • Upon sign-in, if they have 2FA enabled, they'll need to go through that process.

How-To Setup BitWarden on Browser

  • You can implement extensions through Group Policy, but I will assume that is not the case for everyone

Step 1. Download BitWarden Browser Extension

  • Dependent on your browser, install the BitWarden extension based on your browser's web store:

image

  • Click Add Extension:

image

Step 2. Configure Settings for Self-Hosted Instance

  • Once installed, open the extension and click Settings:

image

  • Input your self-hosted URL and click Save:

image

Step 3. Login

  • Input your Email Address and click Continue:

image

  • Input your master password and click Log in:

image

  • If you/they have 2FA enabled, you will be prompt to do that now. In my case, it's asking if I would like to open the popup in a new window, I'm clicking Yes as it will close on me if I were to check my email:

image

  • I'll need to open my email to retrieve my 6 digit code. Once inputted, select Remember me and Continue:

image

  • Success!:

image

How-To Setup BitWarden on Computer

  • Yes, this can also be automated via GPO, MDM, etc. I'll be demonstrating the manual process.
  • Dependent on the individual, they may want to use the Desktop version of the software as some people are familiar using desktop applications for password managers (e.g., KeePass).

Step 1. Install the App

image

  • Open the installer and click Install (IIRC it may not require admin privileges if you install only for the current user):

image

  • Check Run BitWarden and select Finish:

image

Step 2. Configure Settings for Self-Hosted Instance

  • Once the app is open, click Settings in the top-left corner:

image

image

Step 3. Login

  • Input email address, Check Remember email, and click Continue:

image

  • Input Master Password and click Log in:

image

  • If you/they have 2FA enabled, they'll need to access said 2FA method. In my case, I'll need to access my email to grab the 6-digit code:

image

  • Success!:

image