20 KiB
layout, title, categories, featured, popular, tags, order, description
| layout | title | categories | featured | popular | tags | order | description | |
|---|---|---|---|---|---|---|---|---|
| article | Deploy Browser Extension to Managed Devices |
|
true | false | 17 | This article explains how to use GPOs and other templates to automate deployment of Bitwarden Browser Extensions to users with an endpoint management platform. |
When operating Bitwarden in a business setting, administrators may want to automate deployment of Bitwarden Browser Extensions to users with an endpoint management platform or Group Policy.
The process for doing so will be different for each Operating System and browser:
Windows
Deploying Bitwarden Browser Extensions to browsers on Windows generally require using Windows Group Policy to target managed computers an ADMX policy template. The procedure is slightly different for each browser:
To deploy the browser extension on Windows and Google Chrome:
-
Download and unzip the Chrome Enterprise Bundle{:target="_blank"} for Windows.
-
From the unzipped directory:
- Copy
\Configuration\admx\chrome.admxtoC:\Windows\PolicyDefinitions - Copy
\Configuration\admx\en-US\chrome.admltoC:\Windows\PolicyDefinitions\en-US
- Copy
-
Open the Windows Group Policy Manager and create a new GPO for Bitwarden browser extension installation.
-
Right-click on the new GPO and select Edit..., and proceed to navigate to Computer Configuration → Policies → Administrative Templates → Google Chrome → Extensions.
-
In the right-hand Settings area, select Configure the list of force-installed apps and extensions. In the dialog, toggle the Enabled option.
-
Select the Show... button and add the following:
nngceckbapebfimnlniiiahkandclblb;https://clients2.google.com/service/update2/crxClick OK.
-
Still in ...Administrative Templates → Google Chrome, select Password manager from the file tree.
-
In the right-hand Settings area, right-click Enable saving passwords to the password manager and select Edit. In the dialog, toggle the Disabled option and select OK.
-
Repeat Step 8 for the Enable Autofill for addresses and Enable Autofill for credit cards options, found in Settings area for ...Administrative Templates → Google Chrome.
-
Apply the newly-configured GPO to your desired scope.
{% endcapture %} {{ chrome | markdownify }}
To deploy the browser extension on Windows and Firefox:
-
Download and unzip the Firefox ADMX Template{:target="_blank"} file.
-
From the unzipped directory:
- Copy
\policy_templates_<version>\windows\firefox.admxtoC:\Windows\PolicyDefinitions - Copy
\policy_templates_<version>\windows\en-US\firefox.admltoC:\Windows\PolicyDefinitions\en-US
- Copy
-
Open the Windows Group Policy Manager and create a new GPO for the Bitwarden browser extension installation.
-
Right-click on the new GPO and select Edit..., and proceed to navigate to Computer Configuration → Policies → Administrative Templates → Firefox → Extensions.
-
In the right-hand Settings area, select Extensions to Install. In the dialog, toggle the Enabled option.
-
Select the Show... button and add the following:
https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpiClick OK.
-
Back in the file tree select Firefox. In the right-hand Settings area, Edit... and disable both the Offer to save logins and Offer to save logins (default) options.
-
Apply the newly-configured GPO to your desired scope.
{% endcapture %} {{ firefox | markdownify }}
To deploy the browser extension on Windows and Edge:
-
Download and unzip the Microsoft Edge Policy Files{:target="_blank"}.
-
From the unzipped directory:
- Copy
\windows\admx\msedge.admxtoC:\Windows\PolicyDefinitions - Copy
\windows\admx\en-US\msedge.admltoC:\Windows\PolicyDefinitions\en-US
- Copy
-
Open the Windows Group Policy Manager and create a new GPO for the Bitwarden browser extension installation.
-
Right-click on the new GPO and select Edit..., and proceed to navigate to Computer Configuration → Policies → Administrative Templates → Microsoft Edge → Extensions.
-
In the right-hand Settings area, select Control which extensions are installed silently. In the dialog, toggle the Enabled option.
-
Select the Show... button and add the following:
jbkfoedolllekgbhcbcoahefnbanhhlh;https://edge.microsoft.com/extensionwebstorebase/v1/crxClick OK.
-
Still in ..Administrative Templates → Microsoft Edge, select Password manager and protection from the file tree.
-
In the right-hand Settings area, right-click Enable saving passwords to the password manager and select Edit. In the dialog, toggle the Disabled option and select OK.
-
Repeat Step 8 for the Enable Autofill for addresses and Enable Autofill for credit cards options, found in Settings area for ...Administrative Templates → Microsoft Edge.
-
Apply the newly-configured GPO to your desired scope.
{% endcapture %} {{ edge | markdownify }}
Linux
Deploying Bitwarden Browser Extensions to browsers on Linux generally involves using a .json file to set configuration properties. The procedure is slightly different for each browser:
To deploy the browser extension on Linux and Google Chrome:
-
Download the Google Chrome .deb or .rpm{:target="_blank"} for Linux.
-
Download the Chrome Enterprise Bundle{:target="_blank"}.
-
Unzip the Enterprise Bundle (
GoogleChromeEnterpriseBundle64.ziporGoogleChromeEnterpriseBundle32.zip) and open the/Configurationfolder. -
Make a copy of the
master_preferences.json(in Chrome 91+,initial_preferences.json) and rename itmanaged_preferences.json. -
Add the following to
managed_preferences.json:{ "policies:" { "ExtensionSettings": { "nngceckbapebfimnlniiiahkandclblb": { "installation_mode": "force_installed", "update_url": "https://clients2.google.com/service/update2/crx" } } } }In this JSON object,
"nngceckbapebfimnlniiiahkandclblb"is the application identifier for the Bitwarden browser extension. Similarly,"https://clients2.google.com/service/update2/crx"signals Chrome to use the Chrome Web Store to retrieve the identified application.{% callout info %}You may also configure forced installations using the ExtensionInstallForcelist{:target="_blank"} policy, however the ExtensionSettings{:target="_blank"} method will supersede ExtensionInstallForceList.{% endcallout %}
-
(Recommended) To disable{:target="_blank"} Chrome's built-in password manager, add the following to
managed_preferences.jsoninside of"policies": { }:{ "PasswordManagerEnabled": false } -
Create the following directories if they do not already exist:
mkdir /etc/opt/chrome/policies mkdir /etc/opt/chrome/policies/managed -
Move
managed_preferences.jsoninto/etc/opt/chrome/policies/managed. -
As you will need to deploy these files to users' machines, we recommend making sure only admins can write files in the
/manageddirectory:chmod -w /etc/opt/chrome/policies/managed -
Using your preferred software distribution or MDM tool, deploy the following to users' machines:
- Google Chrome Browser
/etc/opt/chrome/policies/managed/managed_preferences.json
{% callout success %}For more help, refer to Google's Chrome Browser Quick Start for Linux{:target="_blank"} guide.{% endcallout %}
{% endcapture %} {{ chrome2 | markdownify }}
To deploy the browser extension on Linux and Firefox:
-
Download Firefox for Linux{:target="_blank"}.
-
Create a
distributiondirectory within the Firefox installation directory. -
In the
distrubitiondirectory, create a filepolicies.json. -
Add the following to
policies.json:{ "policies": { "ExtensionSettings": { "446900e4-71c2-419f-a6a7-df9c091e268b": { "installation_mode": "force_installed", "install_url": "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi" } } } }In this JSON object,
"446900e4-71c2-419f-a6a7-df9c091e268b"is the extension ID for the Bitwarden browser extension. Similarly,"https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi"signals Firefox to use the extension store to retrieve the extension. -
(Recommended) To disable{:target="_blank"} Firefox's built-in password manager, add the following to
policies.jsoninside of"policies": { }:{ "PasswordManagerEnabled": false } -
Using your preferred software distribution or MDM tool, deploy the following to users' machines:
- Firefox Browser
/distribution/policies.json
{% callout success %}For more help, refer to Firefox's policies.json Overview{:target="_blank"} or Policies README{:target="_blank"} on Github.{% endcallout %}
{% endcapture %} {{ firefox2 | markdownify }}
MacOS
Deploying Bitwarden Browser Extensions to browsers on macOS generally involves using a property list (.plist) file. The procedure is slightly different for each browser:
To deploy the browser extension on macOS & Google Chrome:
-
Download the Google Chrome .dmg or .pkg{:target="_blank"} for macOS.
-
Download the Chrome Enterprise Bundle{:target="_blank"}.
-
Unzip the Enterprise Bundle (
GoogleChromeEnterpriseBundle64.ziporGoogleChromeEnterpriseBundle32.zip). -
Open the
/Configuration/com.Google.Chrome.plistfile with any text editor. -
Add the following to the
.plistfile:<key>ExtensionSettings</key> <dict> <key>nngceckbapebfimnlniiiahkandclblb</key> <dict> <key>installation_mode</key> <string>force_installed</string> <key>update_url</key> <string>https://clients2.google.com/service/update2/crx</string> </dict> </dict>In this codeblock,
nngceckbapebfimnlniiiahkandclblbis the application identifier for the Bitwarden browser extension. Similarly,https://clients2.google.com/service/update2/crxsignals Chrome to use the Chrome Web Store to retrieve the identified application.{% callout info %}You may also configure forced installations using the ExtensionInstallForcelist{:target="_blank"} policy, however the ExtensionSettings{:target="_blank"} method will supersede ExtensionInstallForceList.{% endcallout %}
-
(Recommended) To disable{:target="_blank"} Chrome's built-in password manager, add the following to
com.Google.Chrome.plist:<key>PasswordManagerEnabled</key> <false /> -
Convert the
com.Google.Chrome.plistfile to a configuration profile using a conversion tool like mcxToProfile{:target="_blank"}. -
Deploy the Chrome
.dmgor.pkgand the configuration profile using your software distribution or MDM tool to all managed computers.
{% callout success %}For more help, refer to Google's Chrome Browser Quick Start for Mac{:target="_blank"} guide.{% endcallout %}
{% endcapture %} {{ chrome3 | markdownify }}
To deploy the browser extension on MacOS and Firefox:
-
Download and install Firefox for Enterprise{:target="_blank"} for macOS.
-
Create a
distributiondirectory inFirefox.app/Contents/Resources/. -
In the created
/distributiondirectory, create a new fileorg.mozilla.firefox.plist.{% callout success %}Use the Firefox .plist template{:target="_blank"} and Policy README{:target="_blank"} for reference.{% endcallout %}
-
Add the following to
org.mozilla.firefox.plist:<key>ExtensionSettings</key> <dict> <key>446900e4-71c2-419f-a6a7-df9c091e268b</key> <dict> <key>installation_mode</key> <string>force_installed</string> <key>update_url</key> <string>https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi</string> </dict> </dict>In this codeblock,
446900e4-71c2-419f-a6a7-df9c091e268bis the extension ID for the Bitwarden browser extension. Similarly,https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpisignals Firefox to use the extension store to retrieve the application. -
(Recommended) To disable{:target="_blank"} Firefox's built-in password manager, add the following to
org.mozilla.firefox.plist:<dict> <key>PasswordManagerEnabled</key> <false/> </dict> -
Convert the
org.mozilla.firefox.plistfile to a configuration profile using a conversion tool like mcxToProfile{:target="_blank"}. -
Deploy the Firefox
.dmgand the configuration profile using your software distribution or MDM tool to all managed computers.
{% endcapture %} {{ firefox3 | markdownify }}
To deploy the browser extension on macOS and Microsoft Edge:
-
Download the Microsoft Edge for macOS .pkg{:target="_blank"} file.
-
In Terminal, use the following command to create a
.plistfile for Microsoft Edge:/usr/bin/defaults write ~/Desktop/com.microsoft.Edge.plist RestoreOnStartup -int 1 -
Use the following command to convert the
.plistfrom binary to plain text:/usr/bin/plutil -convert xml1 ~/Desktop/com.microsoft.Edge.plist -
Open
com.microsoft.Edge.plistand add the following:<key>ExtensionSettings</key> <dict> <key>jbkfoedolllekgbhcbcoahefnbanhhlh</key> <dict> <key>installation_mode</key> <string>force_installed</string> <key>update_url</key> <string>https://edge.microsoft.com/extensionwebstorebase/v1/crx</string> </dict> </dict>In this codeblock,
jbkfoedolllekgbhcbcoahefnbanhhlhis the application identifier for the Bitwarden browser extension. Similarly,https://edge.microsoft.com/extensionwebstorebase/v1/crxsignals Edge to use the Edge Add-On Store to retrieve the identified application.{% callout info %}You may also configure forced installations using the ExtensionInstallForceList{:target="_blank"}, however the ExtensionSettings{:target="_blank"} method will supersede ExtensionInstallForceList.{% endcallout %}
-
(Recommended) To disable{:target="_blank"} Edge's built-in password manager, add the following to
com.microsoft.Edge.plist:<key>PasswordManagerEnabled</key> <false/> -
Convert the
com.microsoft.Edge.plistfile to a configuration profile using a conversion tool like mcxToProfile{:target="_blank"}. -
Deploy the Edge
.pkgand the configuration profile using your software distribution or MDM tool to all managed computers.
{% callout success %}For Jamf-specific help, refer to Microsoft's documentation on Configuring Microsoft Edge policy settings on macOS with Jamf{:target="_blank"}.{% endcallout %}
{% endcapture %} {{ edge3 | markdownify }}