Deploying the Nexthink browser extension on Firefox via JSON
This page explains how to force-install Firefox extensions on managed Windows and macOS devices using the policies.json configuration file. Firefox Enterprise Policies enable administrators to deploy extensions, enforce settings, and consistently manage the browser experience across various environments.
While the method is cross-platform, file paths and deployment steps vary slightly across different operating systems.
Prerequisites
Before deployment, ensure you have the following:
Your Firefox extension, packaged as a
.xpifile.A reliable location from which all target machines can access the extension:
Local file system path87900
Network share (UNC path)
HTTPS-hosted download URL
Creating the policies.json file
policies.json fileThe policies.json file must contain configuration entries for both extension installation and optional consent behavior.
Below are sample policy files for both macOS and Windows operating systems. Update file paths as necessary for your environment.
Note that the flag appex-firefox-consent should be set to true if you want to override user consent and force approval of the extension for the EULA (End-User License Agreement). Set it to false if you want your users to explicitly provide consent.
Configuration examples for policies.json
policies.jsonWindows example
macOS example
When configuring policies.json, keep the following in mind:
Use forward slashes and full paths for file URLs, even on Windows.
Do not use zipped
.xpi.zipfiles; Firefox expects direct.xpifiles.HTTPS-hosted install URLs are supported (e.g.,
"install_url": "https://internal.example.com/extensions/my_extension.xpi").
Deploying the policies.json file
policies.json fileWindows
Locate the Firefox installation folder:
Standard installation:
32-bit on 64-bit systems or alternate installs:
Create the
distributionfolder:Copy the
policies.jsonfile into the folder (Run as Administrator):Restart Firefox. The specified extension will install automatically.
macOS
Locate the Firefox application folder:
Create the
distributiondirectory if it does not exist:Copy the
policies.jsonfile into the directory:
In some cases, manually copying the file may be required if the command fails.
Restart Firefox. The extension will install automatically and appear locked in the browser.
Troubleshooting
In case you encounter problems during this process, the following actions may help you resolve them:
Double-check all file paths. They must be accessible by the logged-in user.
Ensure the extension is a valid
.xpifile. Zipped versions may not install correctly.To diagnose errors, open the following page in Firefox:
For shared deployments, use UNC paths (e.g.,
file://server/share/extension.xpi) or web-hosted URLs.Ensure that both
policies.jsonand the extension files are readable by Firefox.
RELATED TOPICS
Last updated
Was this helpful?