Android WiFi configuration

Configuring WiFi settings allows administrators to control and configure how devices connect to WiFi networks, ensuring security, compliance, and efficient use of network resources in the following ways.

  • IT admins can silently provision enterprise WiFi configurations on MDM managed Android devices.
  • For fully managed devices, IT admins can optionally prevent a device user from manually modifying corporate Wi-Fi settings on their device by setting wifiConfigsLockdownEnabled to true in the policy.

  • For fully managed devices, IT admins can optionally restrict device users from adding or modifying Wi-Fi network (personal and corporate) on the device by setting wifiConfigDisabled to true in the policy. This limits WiFi connectivity to just those networks provisioned through the policy.

Supported management modes and versions

The following table shows different Wi-Fi configuration options and the supported management mode along with the Android version.

Wi-Fi configurations Work profile

(If supported)

Fully managed

(If supported)

Dedicated

(If supported)

Silently provision enterprise Wi-Fi configurations Yes Yes Yes
Prevent a device user from manually modifying corporate WiFi settings N/A Yes Yes
Restrict device users from adding or modifying WiFi network (personal and corporate) on the device N/A Yes Yes

Wi-Fi configuration parameters

To configure WiFi settings, include an Open Network Configuration and set the openNetworkConfiguration field on a custom policy.
Important: The Android Management API only supports a subset of the Open Network Configuration specification. For more details, see official Android Management API page at https://developers.google.com/android/management/configure-networks.
Wi-Fi configuration parameters Definition
SSID Service Set Identifier

The name of your wireless network, also known as Network ID. Enter the service set identifier, which is the real name of the wireless network that devices connect to.

Security Wireless Security Protocol. Examples: WEP-PSK, WPA-PSK
Passphrase Wi-Fi password
Autoconnect Enables autoconnect on the device.

Valid values: true, false

wifiConfigsLockdownEnabled

Valid values: true, false

When set to true, locks down (corporate) Wi-Fi configurations set and to prevent users from modifying the set configurations

wifiConfigDisabled

Valid values: true, false

When set to true, restricts device users from adding or modifying any Wi-Fi network on the device, limiting Wi-Fi connectivity to just those networks provisioned through the policy.

Sample JSON code

"openNetworkConfiguration": {
  "NetworkConfigurations": [{
    "GUID": "a",
    "Name": "Example A",
    "Type": "WiFi",
    "WiFi": {
      "SSID": "NetworkID",
      "Security": "WEP-PSK",
      "Passphrase": "1234567890"
      "AutoConnect": true
    }
  }]
}