SearchEngines
Configure search engines in Firefox. As of Firefox 139, these policies are available in all Firefox release channels.
Compatibility: Firefox 139, Firefox ESR 60. POST support in Firefox ESR 68, Encoding in Firefox 91, Remove in Firefox ESR 60.2.
CCK2 Equivalent: searchplugins (Add), defaultSearchEngine (Default), disableSearchEngineInstall (PreventInstalls), removeDefaultSearchEngines (Remove)
Preferences Affected: N/A
Values
Section titled “Values”SearchEngines accepts an object with one or more of the following keys:
Add(array of objects): Add new search engines. Each entry accepts:Name(required): the name of the search engine.URLTemplate(required): the search URL with{searchTerms}to substitute for the search term.Method: either GET or POST.IconURL: a URL for the icon to use.Alias: a keyword to use for the engine.Description: a description of the search engine.PostData: thePOSTdata asname=valuepairs separated by&.SuggestURLTemplate: a search suggestions URL with{searchTerms}to substitute for the search term.Encoding: the query charset for the engine. Defaults toUTF-8. Although there are five engines available in the ADMX template, there is no maximum number that can be specified — to add more in the ADMX template, duplicate the XML.
Default(string): set the default search engine.PreventInstalls(boolean): prevent installing search engines from webpages.Remove(array of strings): hide built-in search engines by name.
Windows (GPO)
Section titled “Windows (GPO)”Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\Name = "Example1"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\URLTemplate = "https://www.example.org/q={searchTerms}"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\Method = "GET" | "POST"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\IconURL = "https://www.example.org/favicon.ico"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\Alias = "example"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\Description = "Example Description"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\SuggestURLTemplate = "https://www.example.org/suggestions/q={searchTerms}"Software\Policies\Mozilla\Firefox\SearchEngines\Add\1\PostData = "name=value&q={searchTerms}"Software\Policies\Mozilla\Firefox\SearchEngines\Default = NAME_OF_SEARCH_ENGINESoftware\Policies\Mozilla\Firefox\SearchEngines\PreventInstalls = 0x1 | 0x0Software\Policies\Mozilla\Firefox\SearchEngines\Remove\1 = NAME_OF_SEARCH_ENGINEWindows (Intune)
Section titled “Windows (Intune)”Add OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Search/SearchEngines_1Value (string):
<enabled/><data id="SearchEngine_Name" value="Example1"/><data id="SearchEngine_URLTemplate" value="https://www.example.org/q={searchTerms}"/><data id="SearchEngine_Method" value="GET | POST"/><data id="SearchEngine_IconURL" value="https://www.example.org/favicon.ico"/><data id="SearchEngine_Alias" value="example"/><data id="SearchEngine_Description" value="Example Description"/><data id="SearchEngine_SuggestURLTemplate" value="https://www.example.org/suggestions/q={searchTerms}"/><data id="SearchEngine_PostData" value="name=value&q={searchTerms}"/>Default OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Search/SearchEngines_DefaultValue (string):
<enabled/><data id="SearchEngines_Default" value="NAME_OF_SEARCH_ENGINE"/>PreventInstalls OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Search/SearchEngines_PreventInstallsValue (string):
<enabled/> or <disabled/>Remove OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Search/SearchEngines_RemoveValue (string):
<enabled/><data id="SearchEngines_Remove" value="1NAME_OF_SEARCH_ENGINE"/><dict> <key>SearchEngines</key> <dict> <key>Add</key> <array> <dict> <key>Name</key> <string>Example1</string> <key>URLTemplate</key> <string>https://www.example.org/q={searchTerms}</string> <key>Method</key> <string>GET | POST</string> <key>IconURL</key> <string>https://www.example.org/favicon.ico</string> <key>Alias</key> <string>example</string> <key>Description</key> <string>Example Description</string> <key>SuggestURLTemplate</key> <string>https://www.example.org/suggestions/q={searchTerms}</string> <key>PostData</key> <string>name=value&q={searchTerms}</string> </dict> </array> <key>Default</key> <string>NAME_OF_SEARCH_ENGINE</string> <key>PreventInstalls</key> <true/> | <false/> <key>Remove</key> <array> <string>NAME_OF_SEARCH_ENGINE</string> </array> </dict></dict>policies.json
Section titled “policies.json”{ "policies": { "SearchEngines": { "Add": [ { "Name": "Example1", "URLTemplate": "https://www.example.org/q={searchTerms}", "Method": "GET" | "POST", "IconURL": "https://www.example.org/favicon.ico", "Alias": "example", "Description": "Description", "PostData": "name=value&q={searchTerms}", "SuggestURLTemplate": "https://www.example.org/suggestions/q={searchTerms}" } ], "Default": "NAME_OF_SEARCH_ENGINE", "PreventInstalls": true | false, "Remove": ["NAME_OF_SEARCH_ENGINE"] } }}