Configuring the UserManager.constant policy

The UserManager policy in Android outlines the systems rules and restrictions for user management, outlining the actions and conditions for different user types.

Administrators can add the UserManager policies with custom settings in the form of UserManager.constant. To obtain the keys, enrollment types, and the supported android versions admin can refer the user manager Google document https://developer.android.com/reference/android/os/UserManager.

Follow these steps to create custom policy restrictions in MaaS360®.
  1. From the IBM® MaaS360 home page, go to Security > Policies.
  2. Select an Android Enterprise policy and then select Restrictions.
  3. Expand the Additional Settings section, and then enter custom settings in the form of key-value pairs.
For example, DISALLOW_WIFI_TETHERING
  1. Go to the Additional settings tab.
  2. Add the policy with UserManager.no_wifi_tethering mentioned in the usermanager Google page as key, set the value as true/false, and publish the policy.
  3. After this policy is enforced, the user is not allowed to use the wifi tethering option.
In the preceding example to configure the DISALLOW_WIFI_TETHERING policy the administrator must check the following parameters.
  • The constant value no_wifi_tethering from the Google page to be added against the UserManager.no_wifi_tethering field. There must be no space before and after "UserManager.".
  • The default value to be set true/false.
  • Check for the support matrix from the API level.
  • The user type is Profile owner or Device owner.
Note: All the existing policies remain unchanged.