Permissions
Set permissions associated with camera, microphone, location, notifications, autoplay, and virtual reality. Because these are origins, not domains, entries with unique ports must be specified separately. This explicitly means that it is not possible to add wildcards. See examples below.
Compatibility: Firefox 62, Firefox ESR 60.2 (Autoplay added in Firefox 74, Firefox ESR 68.6, Autoplay Default/Locked added in Firefox 76, Firefox ESR 68.8, VirtualReality added in Firefox 80, Firefox ESR 78.2, ScreenShare added in Firefox 142, Firefox ESR 140.2)
CCK2 Equivalent: N/A
Preferences Affected: permissions.default.camera, permissions.default.microphone, permissions.default.geo, permissions.default.desktop-notification, media.autoplay.default, permissions.default.xr, permissions.default.screen
Examples
Section titled “Examples”{ "policies": { "Permissions": { "Camera": { "Allow": [ "https://example.org", "https://example.org:1234" ], "Block": [ "https://example.edu" ], "BlockNewRequests": true, "Locked": true }, "Microphone": { "Allow": [ "https://example.org" ], "Block": [ "https://example.edu" ], "BlockNewRequests": true, "Locked": true }, "Location": { "Allow": [ "https://example.org" ], "Block": [ "https://example.edu" ], "BlockNewRequests": true, "Locked": true }, "Notifications": { "Allow": [ "https://example.org" ], "Block": [ "https://example.edu" ], "BlockNewRequests": true, "Locked": true }, "Autoplay": { "Allow": [ "https://example.org" ], "Block": [ "https://example.edu" ], "Default": "allow-audio-video", "Locked": true }, "VirtualReality": { "Allow": [ "https://example.org" ], "Block": [ "https://example.edu" ], "BlockNewRequests": true, "Locked": true }, "ScreenShare": { "Allow": [ "https://example.org" ], "Block": [ "https://example.edu" ], "BlockNewRequests": true, "Locked": true } } }}JSON schema
{ "type": "object", "properties": { "Camera": { "type": "object", "properties": { "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "BlockNewRequests": { "type": "boolean" }, "Locked": { "type": "boolean" } } }, "Microphone": { "type": "object", "properties": { "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "BlockNewRequests": { "type": "boolean" }, "Locked": { "type": "boolean" } } }, "Autoplay": { "type": "object", "properties": { "Default": { "type": "string", "enum": [ "allow-audio-video", "block-audio", "block-audio-video" ] }, "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Locked": { "type": "boolean" } } }, "Location": { "type": "object", "properties": { "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "BlockNewRequests": { "type": "boolean" }, "Locked": { "type": "boolean" } } }, "Notifications": { "type": "object", "properties": { "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "BlockNewRequests": { "type": "boolean" }, "Locked": { "type": "boolean" } } }, "VirtualReality": { "type": "object", "properties": { "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "BlockNewRequests": { "type": "boolean" }, "Locked": { "type": "boolean" } } }, "ScreenShare": { "type": "object", "properties": { "Allow": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "Block": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^([Ff][Ii][Ll][Ee]://.*|[Hh][Tt][Tt][Pp][Ss]?://[^/]+/?)$" } }, "BlockNewRequests": { "type": "boolean" }, "Locked": { "type": "boolean" } } } }}Values
Section titled “Values”Allowis a list of origins where the feature is allowed.Blockis a list of origins where the feature is not allowed.BlockNewRequestsdetermines whether or not new requests can be made for the feature.Lockedprevents the user from changing preferences for the feature.Defaultspecifies the default value for Autoplay. block-audio-video is not supported on Firefox ESR 68.
Windows (GPO)
Section titled “Windows (GPO)”Software\Policies\Mozilla\Firefox\Permissions\Camera\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\Camera\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\Camera\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\Camera\BlockNewRequests = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Camera\Locked = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Microphone\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\Microphone\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\Microphone\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\Microphone\BlockNewRequests = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Microphone\Locked = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Location\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\Location\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\Location\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\Location\BlockNewRequests = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Location\Locked = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Notifications\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\Notifications\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\Notifications\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\Notifications\BlockNewRequests = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Notifications\Locked = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\Autoplay\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\Autoplay\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\Autoplay\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\Autoplay\Default = "allow-audio-video" | "block-audio" | "block-audio-video"Software\Policies\Mozilla\Firefox\Permissions\Autoplay\Locked = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\VirtualReality\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\VirtualReality\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\VirtualReality\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\VirtualReality\BlockNewRequests = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\VirtualReality\Locked = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\ScreenShare\Allow\1 = "https://example.org"Software\Policies\Mozilla\Firefox\Permissions\ScreenShare\Allow\2 = "https://example.com"Software\Policies\Mozilla\Firefox\Permissions\ScreenShare\Block\1 = "https://example.edu"Software\Policies\Mozilla\Firefox\Permissions\ScreenShare\BlockNewRequests = 0x1 | 0x0Software\Policies\Mozilla\Firefox\Permissions\ScreenShare\Locked = 0x1 | 0x0Windows (Intune)
Section titled “Windows (Intune)”OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Camera/Camera_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Camera/Camera_BlockValue (string):
<enabled/><data id="Permissions" value="1https://example.edu"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Camera/Camera_BlockNewRequestsValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Camera/Camera_LockedValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Microphone/Microphone_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Microphone/Microphone_BlockValue (string):
<enabled/><data id="Permissions" value="1https://example.edu"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Microphone/Microphone_BlockNewRequestsValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Microphone/Microphone_LockedValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Location/Location_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Location/Location_BlockValue (string):
<enabled/><data id="Permissions" value="1https://example.edu"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Location/Location_BlockNewRequestsValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Location/Location_LockedValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Notifications/Notifications_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Notifications/Notifications_BlockNewRequestsValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Notifications/Notifications_LockedValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Autoplay/Autoplay_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Autoplay/Autoplay_BlockValue (string):
<enabled/><data id="Permissions" value="1https://example.edu"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Autoplay/Autoplay_DefaultValue (string):
<enabled/><data id="Autoplay_Default" value="allow-audio-video | block-audio | block-audio-video"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~Autoplay/Autoplay_LockedValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~VirtualReality/VirtualReality_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~VirtualReality/VirtualReality_BlockValue (string):
<enabled/><data id="Permissions" value="1https://example.edu"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~VirtualReality/VirtualReality_BlockNewRequestsValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~VirtualReality/VirtualReality_LockedValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~ScreenShare/ScreenShare_AllowValue (string):
<enabled/><data id="Permissions" value="1https://example.org2https://example.com"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~ScreenShare/ScreenShare_BlockValue (string):
<enabled/><data id="Permissions" value="1https://example.edu"/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~ScreenShare/ScreenShare_BlockNewRequestsValue (string):
<enabled/> or <disabled/>OMA-URI:
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Permissions~ScreenShare/ScreenShare_LockedValue (string):
<enabled/> or <disabled/><dict> <key>Permissions</key> <dict> <key>Camera</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> <string>https://example.org:1234</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>BlockNewRequests</key> <true/> | <false/> <key>Locked</key> <true/> | <false/> </dict> <key>Microphone</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>BlockNewRequests</key> <true/> | <false/> <key>Locked</key> <true/> | <false/> </dict> <key>Location</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>BlockNewRequests</key> <true/> | <false/> <key>Locked</key> <true/> | <false/> </dict> <key>Notifications</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>BlockNewRequests</key> <true/> <key>Locked</key> <true/> </dict> <key>Autoplay</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>Default</key> <string>allow-audio-video | block-audio | block-audio-video</string> <key>Locked</key> <true/> | <false/> </dict> <key>VirtualReality</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>BlockNewRequests</key> <true/> | <false/> <key>Locked</key> <true/> | <false/> </dict> <key>ScreenShare</key> <dict> <key>Allow</key> <array> <string>https://example.org</string> </array> <key>Block</key> <array> <string>https://example.edu</string> </array> <key>BlockNewRequests</key> <true/> | <false/> <key>Locked</key> <true/> | <false/> </dict> </dict></dict>