Control use of the WebHID API
Jump to overview

Policy overview

Key metadata and intent for this policy.

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

Supported OS tags: Windows7

Setting the policy to 3 lets websites ask for access to HID devices. Setting the policy to 2 denies access to HID devices. Leaving it unset lets websites ask for access, but users can change this setting. This policy can be overridden for specific url patterns using the 'WebHidAskForUrls' (Allow the WebHID API on these sites) and 'WebHidBlockedForUrls' (Block the WebHID API on these sites) policies. Policy options mapping: * BlockWebHid (2) = Do not allow any site to request access to HID devices via the WebHID API * AskWebHid (3) = Allow sites to ask the user to grant access to a HID device Use the preceding information when configuring this policy.

Internal name
DefaultWebHidGuardSetting
Policy ID
3332cd361f4d
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
Control use of the WebHID API
ID DefaultWebHidGuardSetting
enum
Path
Software\Policies\Microsoft\Edge
Value name
DefaultWebHidGuardSetting
Type
REG_DWORD
Options: Do not allow any site to request access to HID devices via the WebHID API (2), Allow sites to ask the user to grant access to a HID device (3)
Control use of the WebHID API
Both · Type enum
Registry mapping
Path
Software\Policies\Microsoft\Edge
Value name
DefaultWebHidGuardSetting
Type
REG_DWORD
Details
Options: Do not allow any site to request access to HID devices via the WebHID API (2), Allow sites to ask the user to grant access to a HID device (3)