Open jobisoft opened 3 years ago
I learned, that this is now possible using the standard enterprise policies. See https://github.com/thundernest/sample-extensions/tree/master/managedStorage
So a dedicated section seems no longer needed, but I think it would be a good idea in general, to showcase what is actually possible using enterprise policies, giving some examples, including the managed storage.
Legacy add-ons had their preferences stored in a Thunderbird preference branch and IT admins could use Enterprise policies to preset
extension.*
values to override/pre-configure add-on settings.WebExtensions have no access to Thunderbird's preference branches. They can instead use the managed storage. Using Enterprise policies to override/pre-configure add-on preferences did not require the add-on itself to "know" about this. This is different for the managed storage: The add-on needs to support it as it is the add-on who needs to check if there is a value in the managed storage. To get the
colour
value of the managed storage, it has to do this:So if add-ons are used in Enterprise environments and IT admins need the feature to preset some settings, they first need to get in touch with the developer.
Once the add-on supports the managed storage, IT admins can deploy configuration files as described here:
There is an example add-on, which can be used to test this concept:
And that file should look like so:
Tools
->Developer Tools
->Debug Add-on
Load Temporary Add-on ...
button and select themanifest.json
file in thefavourite-colour
folder of the downloaded and extracted zip file / cloned repositoryFavorite color options
button in the toolbar, or go to the add-on manager and manually open the add-ons options. You should see this:It depends on the add-on how the information from the managed storage is used. In this case it is just presented as an information, but it could also lock the config field and enforce the value from the management.