Automatically grant sites permission to connect to USB serial devices
Jump to overview

Policy overview

Key metadata and intent for this policy.

Category
Microsoft Edge > Content settings
Supported on
Microsoft Edge version 97, Windows 7 or later

Supported OS tags: Windows7

Setting the policy lets you list sites that are automatically granted permission to access USB serial devices with vendor and product IDs that match the vendor_id and product_id fields. Optionally you can omit the product_id field. This enables site access to the vendor's devices. When you provide a product ID, then you give the site access to a specific device from the vendor but not all devices. The URLs must be valid, or the policy is ignored. Only the origin (scheme, host, and port) of the URL is considered. This policy overrides 'DefaultSerialGuardSetting' (Control use of the Serial API), 'SerialAskForUrls' (Allow the Serial API on specific sites), 'SerialBlockedForUrls' (Block the Serial API on specific sites), and the user's preferences. This policy only affects access to USB devices through the Web Serial API. To grant access to USB devices through the WebUSB API, see the 'WebUsbAllowDevicesForUrls' (Grant access to specific sites to connect to specific USB devices) policy. Example value: [ { "devices": [ { "product_id": 5678, "vendor_id": 1234 } ], "urls": [ "https://specific-device.example.com" ] }, { "devices": [ { "vendor_id": 1234 } ], "urls": [ "https://all-vendor-devices.example.com" ] } ]

Internal name
SerialAllowUsbDevicesForUrls
Policy ID
420de2a93e63
Elements
1

Registry values

How enabled and disabled states update the registry.

No explicit registry values are set for enabled or disabled states.

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Automatically grant sites permission to connect to USB serial devices
ID SerialAllowUsbDevicesForUrls
text
Path
Software\Policies\Microsoft\Edge
Value name
SerialAllowUsbDevicesForUrls
Type
REG_SZ
None
Automatically grant sites permission to connect to USB serial devices
Both · Type text
Registry mapping
Path
Software\Policies\Microsoft\Edge
Value name
SerialAllowUsbDevicesForUrls
Type
REG_SZ
DetailsNone