Android WiFi Example Template

You can manage WiFi configuration on Android devices through a policy. Read this section to learn how to create a custom Android WiFi policy using a template from WebUI.

About this task

To create a custom Android WiFi policy from the Android WiFi template, complete the following steps:
  1. From the WebUI select Apps > MCM
  2. The WebUI MCM dashboard appears. Click Create Policy.
  3. From the list of available policy options, select Custom from Template.
  4. On the General Settings page, do the following:
    1. Enter Policy Name and Description.
    2. For Operating System, select Android.
    3. From the Assign Policy to Site drop-down, select a site to assign the policy.
    4. In the Templated Policy section, under Select a Policy from Template drop-down, select Android WiFi Example Template and edit the necessary parameters.
      {
         "deviceRadioState": {
         "wifiState": "WIFI_ENABLED" 
         },
         "deviceConnectivityManagement": {
           "configureWifi": "ALLOW_CONFIGURING_WIFI", 
           "wifiDirectSettings": "ALLOW_WIFI_DIRECT" 
         },
         "openNetworkConfiguration": {
           "NetworkConfigurations": [
             { 
               "GUID": "cc0b4c66-aa58-4c49-8bae-af927643cec0",
               "Name": "Simple Network",
               "Type": "WiFi",
               "WiFi": {
                 "SSID": "{{SSID_NAME}}",
                 "Security": "WPA-PSK", 
                 "Passphrase": "{{PASSWORD}}",
                 "AutoConnect": true
               }
             }]
         },
         "networkEscapeHatchEnabled": true,
         "wifiConfigsLockdownEnabled": true, 
         "wifiConfigDisabled": true 
       }
      • Replace {{SSID_NAME}} in the template with your WiFi SSID.
      • Replace {{PASSWORD}} in the template with the actual WiFi password.
      For more detailed information regarding the supported open network configuration in Android, refer to https://developers.google.com/android/management/configure-networks#multiple_wifi_networks.
    5. Click Save to save the Custom WiFi policy.
  5. Add the saved policy to a policy group for Android and deploy to MDM Server.

Results

Once the policy is deployed onto MCM-managed Android devices, the devices automatically get connected to the WiFi network as defined in the WiFi policy without user intervention.