Edit

Share via


DefaultWebUsbGuardSetting

Control use of the WebUSB API

Supported versions

  • On Windows and macOS since 77 or later

Description

Set whether websites can access connected USB devices. You can completely block access or ask the user each time a website wants to get access to connected USB devices.

You can override this policy for specific URL patterns by using the WebUsbAskForUrls and WebUsbBlockedForUrls policies.

If you don't configure this policy, sites can ask users whether they can access the connected USB devices ('AskWebUsb') by default, and users can change this setting.

Policy options mapping:

  • BlockWebUsb (2) = Do not allow any site to request access to USB devices via the WebUSB API

  • AskWebUsb (3) = Allow sites to ask the user to grant access to a connected USB device

Use the preceding information when configuring this policy.

Policy options mapping:

Use this information when configuring this policy.

  • BlockWebUsb (2) = Do not allow any site to request access to USB devices via the WebUSB API
  • AskWebUsb (3) = Allow sites to ask the user to grant access to a connected USB device

Supported features

  • Can be mandatory: Yes
  • Can be recommended: No
  • Dynamic Policy Refresh: Yes
  • Per Profile: Yes
  • Applies to a profile that is signed in with a Microsoft account: Yes

Data type

  • Integer

Windows information and settings

Group Policy (ADMX) info

  • GP unique name: DefaultWebUsbGuardSetting
  • GP name: Control use of the WebUSB API
  • GP path (Mandatory): Administrative Templates/Microsoft Edge/Content settings
  • GP path (Recommended): N/A
  • GP ADMX file name: MSEdge.admx

Example value

Do not allow any site to request access to USB devices via the WebUSB API

Registry settings

  • Path (Mandatory): SOFTWARE\Policies\Microsoft\Edge
  • Path (Recommended): N/A
  • Value name: DefaultWebUsbGuardSetting
  • Value type: REG_DWORD

Example registry value

0x00000002

Mac information and settings

  • Preference Key name: DefaultWebUsbGuardSetting
  • Example value:
<integer>2</integer>

See also