{"id":3676,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=41"},"modified":"2026-03-18T11:50:25","modified_gmt":"2026-03-18T11:50:25","slug":"android-policies","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/android-policies\/","title":{"rendered":"Android Policies"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>Android Policies<\/h2>\n<p>The <strong>password<\/strong> dictionary can contain the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"20%\"><strong> Argument <\/strong><\/th>\n<th width=\"10%\"><strong> Type <\/strong><\/th>\n<th width=\"15%\"><strong> Description <\/strong><\/th>\n<th width=\"10%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>passcode_requirement<\/td>\n<td>String<\/td>\n<td>Optional.Possible values can be <strong>simple<\/strong>, <strong>numbers<\/strong>, <strong>alphanumeric<\/strong>, <strong>alphabet<\/strong>, <strong>complexvalue<\/strong><\/td>\n<td>simple<\/td>\n<\/tr>\n<tr>\n<td>min_password_complexity<\/td>\n<td>String<\/td>\n<td>Optional. Possible values can be <strong>none<\/strong>, <strong>low<\/strong>, <strong>medium,<\/strong>\u00a0<strong>high <\/strong><\/td>\n<td>low<\/td>\n<\/tr>\n<tr>\n<td>min_length<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>4 to 16<\/strong>. Ignored if <strong>passcode_requirement<\/strong> is set to <em>simple<\/em> or <em>numbers<\/em><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>max_pinage_in_days<\/td>\n<td>Integer<\/td>\n<td>Optional. Specifies the number of days for which the passcode can remain unchanged. Minimum value is <strong>1<\/strong> and maximum value is <strong>730<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>max_inactivity<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are <strong>1<\/strong>, <strong>2<\/strong>, <strong>3<\/strong>, <strong>4<\/strong>, <strong>5<\/strong>, <strong>10<\/strong> and <strong>15<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>pin_history<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>1<\/strong> to <strong>50<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>max_failed_attempts<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>4<\/strong> to <strong>10<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>If <strong>passcode_requirement<\/strong> is set to complexvalue, the following fields may be required:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"21%\"><strong> Argument <\/strong><\/th>\n<th width=\"8%\"><strong> Type <\/strong><\/th>\n<th width=\"34%\"><strong> Description <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>min_uppercase_letters<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>1<\/strong> to <strong>5<\/strong><\/td>\n<\/tr>\n<tr>\n<td>min_lowercase_letters<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>1<\/strong> to <strong>5<\/strong><\/td>\n<\/tr>\n<tr>\n<td>min_non_alphapets<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>1<\/strong> to <strong>5<\/strong><\/td>\n<\/tr>\n<tr>\n<td>min_num_letters<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>1<\/strong> to <strong>5<\/strong><\/td>\n<\/tr>\n<tr>\n<td>min_symbols<\/td>\n<td>Integer<\/td>\n<td>Optional. Possible values are from <strong>1<\/strong> to <strong>5<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>restrictions<\/strong> dictionary can contain following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"26%\"><strong> Argument <\/strong><\/th>\n<th width=\"12%\"><strong> Type <\/strong><\/th>\n<th width=\"15%\"><strong> Description <\/strong><\/th>\n<th width=\"10%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>allow_camera<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_usb_mass_storage<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_network_time<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_wifi<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>enforce_wifi<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_bluetooth<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_data_network<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_bgdata_sync<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_auto_background_sync<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_mobile_app<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_usb_tethering<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_mock_locations<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_wireless_location<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_gps_location<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_non_google_app<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>enforce_app_verification<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_backup_google<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_auto_restore<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_roaming<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>enforce_device_encrypt<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>disable_keyguard<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_password_visible<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>enforce_gps_location<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_mdm_removal<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>wifi<\/strong> dictionary contains the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"25%\"><strong> Argument <\/strong><\/th>\n<th width=\"15%\"><strong> Type <\/strong><\/th>\n<th width=\"25%\"><strong> Description <\/strong><\/th>\n<th width=\"12%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>service_set_identifier<\/td>\n<td>String<\/td>\n<td>Required<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>autojoin<\/td>\n<td>Boolean<\/td>\n<td><\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>hidden_network<\/td>\n<td>Boolean<\/td>\n<td><\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>security_type<\/td>\n<td>String<\/td>\n<td>Required. Possible values are <strong>none<\/strong>, <strong>wep<\/strong>, <strong>wpa<\/strong>, <strong>eap<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>password<\/td>\n<td>String<\/td>\n<td>Required if <strong>security_type<\/strong> is set to <em>wep<\/em> or <em>wpa<\/em><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>eap_type<\/td>\n<td>String<\/td>\n<td>Required if <strong>security_type<\/strong> is set to <em>eap<\/em>. Possible values are <strong>peap<\/strong>, <strong>ttls<\/strong>, <strong>pwd<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>user_name<\/td>\n<td>String<\/td>\n<td>Required if <strong>security_type<\/strong> is set to <em>eap<\/em><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>enterprise_password<\/td>\n<td>String<\/td>\n<td>Optional. Value can be set to null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>phase2_authentication<\/td>\n<td>String<\/td>\n<td>Required if <strong>eap_type<\/strong> is set to <em>peap<\/em>. Possible values are <strong>None<\/strong>, <strong>PAP<\/strong>, <strong>MSCHAP<\/strong>, <strong>MSCHAPv2<\/strong>, <strong>GTC<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>outer_identity<\/td>\n<td>String<\/td>\n<td>Required if <strong>eap_type<\/strong> is set to <em>peap<\/em>.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>email<\/strong> dictionary contains the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"20%\"><strong> Argument <\/strong><\/th>\n<th width=\"12%\"><strong> Type <\/strong><\/th>\n<th width=\"20%\"><strong> Description <\/strong><\/th>\n<th width=\"15%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>account_name<\/td>\n<td>String<\/td>\n<td>Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>account_description<\/td>\n<td>String<\/td>\n<td>Required. Account description<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>incoming_account_type<\/td>\n<td>String<\/td>\n<td>Optional. Possible values are <strong>pop3<\/strong> and <strong>imap<\/strong><\/td>\n<td>pop3<\/td>\n<\/tr>\n<tr>\n<td>email_address<\/td>\n<td>String<\/td>\n<td>Optional. Email address for the account. Value can be set to null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>incoming_server_host_name<\/td>\n<td>String<\/td>\n<td>Required<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>incoming_server_port<\/td>\n<td>Integer<\/td>\n<td>Optional<\/td>\n<td>143<\/td>\n<\/tr>\n<tr>\n<td>incoming_server_username<\/td>\n<td>Integer<\/td>\n<td>Optional. Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>incoming_password<\/td>\n<td>String<\/td>\n<td>Optional. Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>incoming_server_use_ssl<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>incoming_server_use_tls<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>incoming_server_use_certificate<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>out_account_type<\/td>\n<td>Boolean<\/td>\n<td>Required. Possible values are <strong>pop3<\/strong> and <strong>smtp<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>out_server_host_name<\/td>\n<td>String<\/td>\n<td>Required<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>out_server_port<\/td>\n<td>Integer<\/td>\n<td>Optional<\/td>\n<td>587<\/td>\n<\/tr>\n<tr>\n<td>out_server_username<\/td>\n<td>String<\/td>\n<td>Optional. Outgoing username for the email. Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>out_password<\/td>\n<td>String<\/td>\n<td>Optional. Password for account authentication. Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>out_server_use_ssl<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>out_server_use_tls<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>out_server_use_certificate<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>activesync<\/strong> dictionary contains the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"20%\"><strong> Argument <\/strong><\/th>\n<th width=\"15%\"><strong> Type <\/strong><\/th>\n<th width=\"20%\"><strong> Description <\/strong><\/th>\n<th width=\"12%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>account_name<\/td>\n<td>String<\/td>\n<td>Optional. Visible account description<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>String<\/td>\n<td>Required. Exchange ActiveSync Host<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>domain<\/td>\n<td>String<\/td>\n<td>Optional. Use <strong>%<\/strong><strong>domain<\/strong><strong>%<\/strong> as user\u2019s domain. Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>email_address<\/td>\n<td>String<\/td>\n<td>Required. Email address for the account. Use <strong>%<\/strong><strong>email<\/strong><strong>%<\/strong> for users\u2019 email address.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>username<\/td>\n<td>String<\/td>\n<td>Required. Use <strong>%<\/strong><strong>username<\/strong><strong>%<\/strong> for the username<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>password<\/td>\n<td>String<\/td>\n<td>Optional. Value can be null<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>no_past_days_to_sync<\/td>\n<td>String<\/td>\n<td>Optional. Possible values are <strong>auto<\/strong>, <strong>manual<\/strong>, <strong>15<\/strong>, <strong>30<\/strong>, <strong>60<\/strong>, <strong>120<\/strong>, <strong>240<\/strong><\/td>\n<td>auto<\/td>\n<\/tr>\n<tr>\n<td>use_ssl<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>applock<\/strong> dictionary contains the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"15%\"><strong> Argument <\/strong><\/th>\n<th width=\"20%\"><strong> Type <\/strong><\/th>\n<th width=\"15%\"><strong> Description <\/strong><\/th>\n<th width=\"12%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>apps<\/td>\n<td>Array<\/td>\n<td>Optional. Apps array have dictionaries which contain keys <strong>id<\/strong> whose value is the app ID and <strong>hide<\/strong> whose value is boolean<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>toggle_wifi<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_wifi<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>enable_hexnode_browser<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>auto_launch_app<\/td>\n<td>Integer<\/td>\n<td>Optional. ID of app added in apps. Ignored if apps key is missing<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>auto_launch_delay<\/td>\n<td>Integer<\/td>\n<td>Optional. Delay in seconds. Ignored if apps key is missing<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>allow_change_brightness<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>brightness_level<\/td>\n<td>Integer<\/td>\n<td>Required if <strong>allow_change_brightness<\/strong> is set to <em>false<\/em><\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>keep_screen_on<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>allow_bluetooth<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>allow_user_location_checkin<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>kiosk_manual_exit<\/td>\n<td>Boolean<\/td>\n<td>Optional<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>kiosk_password<\/td>\n<td>String<\/td>\n<td>Optional. If this field is not configured, set to null, or given an empty string (&#8220;&#8221;), the value specified under <strong>Admin > General Settings > Global Exit Settings<\/strong> can be used to exit kiosk mode. <\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>exit_passcode_tap_count<\/td>\n<td>Integer<\/td>\n<td>Required if <strong>kiosk_manual_exit<\/strong> is set to true. Specify the number of taps to display the popup to enter the exit passcode. The entered value should be between 5 and 15.<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>exit_kiosk_with_app_open<\/td>\n<td>Boolean<\/td>\n<td>Optional. Specify if the user can exit manually from kiosk mode while an app is open.<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>exit_kiosk_after_reboot<\/td>\n<td>Boolean<\/td>\n<td>Optional. Allows exiting kiosk mode during launch delay after a reboot. Users can exit the kiosk mode by tapping on the kiosk home screen and entering the local\/global exit passcode during this launch delay.<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>relaunch_app<\/td>\n<td>Integer<\/td>\n<td>Required, if <strong>exit_kiosk_after_reboot<\/strong> is set true. Specify the time in seconds after which the app relaunches itself in kiosk mode.<\/td>\n<td>20<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>wallpaper<\/strong> dictionary may contain the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"15%\"><strong> Argument <\/strong><\/th>\n<th width=\"15%\"><strong> Type <\/strong><\/th>\n<th width=\"15%\"><strong> Description <\/strong><\/th>\n<th width=\"12%\"><strong> Default value <\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>mobile_wallpaper<\/td>\n<td>String<\/td>\n<td>Required. Base64 image<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>tablet_wallpaper<\/td>\n<td>String<\/td>\n<td>Required. Base64 image<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The <strong>app_management<\/strong> dictionary can contain the following keys:<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th> <strong> Argument <\/strong> <\/th>\n<th> <strong> Type <\/strong> <\/th>\n<th> <strong> Description <\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>whitelist_apps<\/td>\n<td>Dictionary<\/td>\n<td>Optional. A dictionary containing the explicit keys <strong>app<\/strong> (whose value is a list of app IDs) and <strong>group<\/strong> (whose value is a list of app group IDs). <\/td>\n<\/tr>\n<tr>\n<td>blacklist_apps<\/td>\n<td>Dictionary<\/td>\n<td>Optional. A dictionary containing the explicit keys <strong>app<\/strong> (whose value is a list of app IDs) and <strong>group<\/strong> (whose value is a list of app group IDs). <\/td>\n<\/tr>\n<tr>\n<td>mandatory_apps<\/td>\n<td>Dictionary<\/td>\n<td>Optional. A dictionary containing the explicit keys <strong>app<\/strong> (whose value is a list of app IDs) and <strong>group<\/strong> (whose value is a list of app group IDs). <\/td>\n<\/tr>\n<tr>\n<td>catalogues<\/td>\n<td>List \/ Array<\/td>\n<td>Optional. List of integers representing the corresponding catalogue IDs.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"method-example\"><\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">POST https:\/\/.hexnodemdm.com\/api\/v1\/policy\/\r\nheaders:-\r\nAuthorization: \r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n \"name\": \"Sales Team Policy\",\r\n \"description\": \"\",\r\n \"android\": {\r\n \"password\": null,\r\n \"restrictions\": {\r\n \"allow_camera\": true,\r\n \"allow_usb_mass_storage\": true,\r\n \"allow_wifi\": true,\r\n \"allow_bluetooth\": true,\r\n \"allow_data_network\": true,\r\n \"allow_mock_locations\": true,\r\n \"allow_gps_location\": true,\r\n \"enforce_gps_location\": true,\r\n \"enforce_device_encrypt\": false,\r\n \"allow_data_backup\": false,\r\n \"allow_mdm_removal\": true\r\n },\r\n \"wifi\": {},\r\n \"email\": {},\r\n \"activesync\": {},\r\n \"applock\": {},\r\n \"wallpaper\": {},\r\n \"android_web_content_filter\": {},\r\n \"app_management\": {},\r\n },\r\n \"general_settings\": {},\r\n \"policy_targets\": {\r\n \"devices\": [],\r\n \"devicegroups\": [],\r\n \"users\": [],\r\n \"usergroups\": []\r\n }\r\n}]\r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">curl -H \"Authorization: \" -H \"Content-Type: application\/json\" -d '{\"name\": \"Sales Team Policy\",\"description\": \"\",\r\n \"android\": {\r\n \"restrictions\": {\"allow_camera\": true,\"allow_usb_mass_storage\": true,\"allow_wifi\": true,\r\n \"allow_bluetooth\": true,\"allow_data_network\": true,\"allow_mock_locations\": true,\"allow_gps_location\": true,\r\n \"enforce_gps_location\": true,\"enforce_device_encrypt\": false,\"allow_data_backup\": false,\r\n \"allow_mdm_removal\": true\r\n }},\r\n \"policy_targets\": {\"devices\": [2,3,4],\"devicegroups\": [],\"users\": [],\"usergroups\": []}\r\n },\r\nhttps:\/\/.hexnodemdm.com\/api\/v1\/policy\/ -X POST\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">HTTP\/1.1 201 Created\r\n{\r\n{\r\n \"id\": 3,\r\n \"name\": \"Sales Team Policy\",\r\n \"description\": \"\",\r\n \"version\": 4,\r\n \"ios_configured\": false,\r\n \"android_configured\": true,\r\n \"windows_configured\": false,\r\n \"created_time\": \"2021-05-13T09:11:14.670285Z\",\r\n \"modified_time\": \"2021-05-13T09:14:20.712140Z\",\r\n \"ios\": {\r\n \"password\": null,\r\n \"restrictions\": null,\r\n \"advanced_restrictions\": null,\r\n \"web_content_filter\": null,\r\n \"wifi\": null,\r\n \"vpn\": null,\r\n \"email\": null,\r\n \"activesync\": null,\r\n \"ldap\": null,\r\n \"caldav\": null,\r\n \"subscribe_calendar\": null,\r\n \"carddav\": null,\r\n \"webclip\": null,\r\n \"access_point\": null,\r\n \"applock\": null,\r\n \"wallpaper\": null,\r\n \"globalproxy\": null,\r\n \"lock_screen_msg\": null\r\n },\r\n \"android\": {\r\n \"password\": null,\r\n \"restrictions\": {\r\n \"allow_camera\": true,\r\n \"allow_usb_mass_storage\": true,\r\n \"allow_wifi\": true,\r\n \"allow_bluetooth\": true,\r\n \"allow_data_network\": true,\r\n \"allow_mock_locations\": true,\r\n \"allow_gps_location\": true,\r\n \"enforce_gps_location\": true,\r\n \"enforce_device_encrypt\": false,\r\n \"allow_data_backup\": false,\r\n \"allow_mdm_removal\": true\r\n },\r\n \"wifi\": [],\r\n \"email\": null,\r\n \"activesync\": null,\r\n \"applock\": null,\r\n \"wallpaper\": null,\r\n \"android_web_content_filter\": null,\r\n \"app_management\": {\r\n \"whitelist_apps\": {\r\n \"app\": [],\r\n \"group\": []\r\n },\r\n \"blacklist_apps\": {\r\n \"app\": [],\r\n \"group\": []\r\n },\r\n \"mandatory_apps\": {\r\n \"app\": [],\r\n \"group\": []\r\n },\r\n \"catalogues\": []\r\n }\r\n },\r\n \"general_settings\": {\r\n \"location_settings\": {\r\n \"tracking_disabled\": false,\r\n \"interval_minutes\": 60,\r\n \"location_configured\": false\r\n }\r\n },\r\n \"policy_targets\": {\r\n \"devices\": [2,3,4],\r\n \"devicegroups\": [],\r\n \"users\": [],\r\n \"usergroups\": []\r\n }\r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Android Policies The password dictionary can contain the following keys: Argument Type Description Default value passcode_requirement String Optional.Possible values can be simple, numbers, alphanumeric, alphabet, complexvalue simple min_password_complexity String Optional. Possible values can be none, low, medium,\u00a0high low min_length Integer Optional. Possible values are from 4 to 16. Ignored if passcode_requirement is set to simple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3672,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3676","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=3676"}],"version-history":[{"count":19,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3676\/revisions"}],"predecessor-version":[{"id":5021,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3676\/revisions\/5021"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3672"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}