Category Filter
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, high | low |
min_length | Integer | Optional. Possible values are from 4 to 16. Ignored if passcode_requirement is set to simple or numbers | |
max_pinage_in_days | Integer | Optional. Specifies the number of days for which the passcode can remain unchanged. Minimum value is 1 and maximum value is 730 | |
max_inactivity | Integer | Optional. Possible values are 1, 2, 3, 4, 5, 10 and 15 | |
pin_history | Integer | Optional. Possible values are from 1 to 50 | |
max_failed_attempts | Integer | Optional. Possible values are from 4 to 10 |
If passcode_requirement is set to complexvalue, the following fields may be required:
Argument | Type | Description |
---|---|---|
min_uppercase_letters | Integer | Optional. Possible values are from 1 to 5 |
min_lowercase_letters | Integer | Optional. Possible values are from 1 to 5 |
min_non_alphapets | Integer | Optional. Possible values are from 1 to 5 |
min_num_letters | Integer | Optional. Possible values are from 1 to 5 |
min_symbols | Integer | Optional. Possible values are from 1 to 5 |
The restrictions dictionary can contain following keys:
Argument | Type | Description | Default value |
---|---|---|---|
allow_camera | Boolean | Optional | true |
allow_usb_mass_storage | Boolean | Optional | true |
allow_network_time | Boolean | Optional | true |
allow_wifi | Boolean | Optional | true |
enforce_wifi | Boolean | Optional | true |
allow_bluetooth | Boolean | Optional | true |
allow_data_network | Boolean | Optional | true |
allow_bgdata_sync | Boolean | Optional | true |
allow_auto_background_sync | Boolean | Optional | true |
allow_mobile_app | Boolean | Optional | true |
allow_usb_tethering | Boolean | Optional | true |
allow_mock_locations | Boolean | Optional | true |
allow_wireless_location | Boolean | Optional | true |
allow_gps_location | Boolean | Optional | true |
allow_non_google_app | Boolean | Optional | true |
enforce_app_verification | Boolean | Optional | true |
allow_backup_google | Boolean | Optional | true |
allow_auto_restore | Boolean | Optional | true |
allow_roaming | Boolean | Optional | true |
enforce_device_encrypt | Boolean | Optional | true |
disable_keyguard | Boolean | Optional | true |
allow_password_visible | Boolean | Optional | true |
enforce_gps_location | Boolean | Optional | true |
allow_mdm_removal | Boolean | Optional | true |
The wifi dictionary contains the following keys:
Argument | Type | Description | Default value |
---|---|---|---|
service_set_identifier | String | Required | |
autojoin | Boolean | true | |
hidden_network | Boolean | false | |
security_type | String | Required. Possible values are none, wep, wpa, eap | |
password | String | Required if security_type is set to wep or wpa | |
eap_type | String | Required if security_type is set to eap. Possible values are peap, ttls, pwd | |
user_name | String | Required if security_type is set to eap | |
enterprise_password | String | Optional. Value can be set to null | |
phase2_authentication | String | Required if eap_type is set to peap. Possible values are None, PAP, MSCHAP, MSCHAPv2, GTC | |
outer_identity | String | Required if eap_type is set to peap. |
The email dictionary contains the following keys:
Argument | Type | Description | Default value |
---|---|---|---|
account_name | String | Value can be null | |
account_description | String | Required. Account description | |
incoming_account_type | String | Optional. Possible values are pop3 and imap | pop3 |
email_address | String | Optional. Email address for the account. Value can be set to null | |
incoming_server_host_name | String | Required | |
incoming_server_port | Integer | Optional | 143 |
incoming_server_username | Integer | Optional. Value can be null | |
incoming_password | String | Optional. Value can be null | |
incoming_server_use_ssl | Boolean | Optional | true |
incoming_server_use_tls | Boolean | Optional | false |
incoming_server_use_certificate | Boolean | Optional | false |
out_account_type | Boolean | Required. Possible values are pop3 and smtp | |
out_server_host_name | String | Required | |
out_server_port | Integer | Optional | 587 |
out_server_username | String | Optional. Outgoing username for the email. Value can be null | |
out_password | String | Optional. Password for account authentication. Value can be null | |
out_server_use_ssl | Boolean | Optional | true |
out_server_use_tls | Boolean | Optional | false |
out_server_use_certificate | Boolean | Optional | false |
The activesync dictionary contains the following keys:
Argument | Type | Description | Default value |
---|---|---|---|
account_name | String | Optional. Visible account description | |
host | String | Required. Exchange ActiveSync Host | |
domain | String | Optional. Use %domain% as user’s domain. Value can be null | |
email_address | String | Required. Email address for the account. Use %email% for users’ email address. | |
username | String | Required. Use %username% for the username | |
password | String | Optional. Value can be null | |
no_past_days_to_sync | String | Optional. Possible values are auto, manual, 15, 30, 60, 120, 240 | auto |
use_ssl | Boolean | Optional | true |
The applock dictionary contains the following keys:
Argument | Type | Description | Default value |
---|---|---|---|
apps | Array | Optional. Apps array have dictionaries which contain keys id whose value is the app ID and hide whose value is boolean | |
toggle_wifi | Boolean | Optional | true |
allow_wifi | Boolean | Optional | true |
enable_hexnode_browser | Boolean | Optional | false |
auto_launch_app | Integer | Optional. ID of app added in apps. Ignored if apps key is missing | |
auto_launch_delay | Integer | Optional. Delay in seconds. Ignored if apps key is missing | |
allow_change_brightness | Boolean | Optional | true |
brightness_level | Integer | Required if allow_change_brightness is set to false | 0 |
keep_screen_on | Boolean | Optional | false |
allow_bluetooth | Boolean | Optional | true |
allow_user_location_checkin | Boolean | Optional | true |
kiosk_password | String | Optional. Password to exit kiosk |
The wallpaper dictionary may contain the following keys:
Argument | Type | Description | Default value |
---|---|---|---|
mobile_wallpaper | String | Required. Base64 image | |
tablet_wallpaper | String | Required. Base64 image |
curl
HTTP Request:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
POST https://.hexnodemdm.com/api/v1/policy/ headers:- Authorization: Content-Type: application/json Sample Post Data:- [{ "name": "Sales Team Policy", "description": "", "android": { "password": null, "restrictions": { "allow_camera": true, "allow_usb_mass_storage": true, "allow_wifi": true, "allow_bluetooth": true, "allow_data_network": true, "allow_mock_locations": true, "allow_gps_location": true, "enforce_gps_location": true, "enforce_device_encrypt": false, "allow_data_backup": false, "allow_mdm_removal": true }, "wifi": {}, "email": {}, "activesync": {}, "applock": {}, "wallpaper": {}, "android_web_content_filter": {} }, "app_management": {}, "general_settings": {}, "policy_targets": { "devices": [], "devicegroups": [], "users": [], "usergroups": [] } }] |
Shell Command:
1 2 3 4 5 6 7 8 9 10 |
curl -H "Authorization: " -H "Content-Type: application/json" -d '{"name": "Sales Team Policy","description": "", "android": { "restrictions": {"allow_camera": true,"allow_usb_mass_storage": true,"allow_wifi": true, "allow_bluetooth": true,"allow_data_network": true,"allow_mock_locations": true,"allow_gps_location": true, "enforce_gps_location": true,"enforce_device_encrypt": false,"allow_data_backup": false, "allow_mdm_removal": true }}, "policy_targets": {"devices": [2,3,4],"devicegroups": [],"users": [],"usergroups": []} }, https://.hexnodemdm.com/api/v1/policy/ -X POST |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
HTTP/1.1 201 Created { { "id": 3, "name": "Sales Team Policy", "description": "", "version": 4, "ios_configured": false, "android_configured": true, "windows_configured": false, "created_time": "2021-05-13T09:11:14.670285Z", "modified_time": "2021-05-13T09:14:20.712140Z", "ios": { "password": null, "restrictions": null, "advanced_restrictions": null, "web_content_filter": null, "wifi": null, "vpn": null, "email": null, "activesync": null, "ldap": null, "caldav": null, "subscribe_calendar": null, "carddav": null, "webclip": null, "access_point": null, "applock": null, "wallpaper": null, "globalproxy": null, "lock_screen_msg": null }, "android": { "password": null, "restrictions": { "allow_camera": true, "allow_usb_mass_storage": true, "allow_wifi": true, "allow_bluetooth": true, "allow_data_network": true, "allow_mock_locations": true, "allow_gps_location": true, "enforce_gps_location": true, "enforce_device_encrypt": false, "allow_data_backup": false, "allow_mdm_removal": true }, "wifi": [], "email": null, "activesync": null, "applock": null, "wallpaper": null, "android_web_content_filter": null }, "app_management": { "whitelist_apps": { "app": [], "group": [] }, "blacklist_apps": { "app": [], "group": [] }, "mandatory_apps": { "app": [], "group": [] }, "catalogues": [] }, "general_settings": { "location_settings": { "tracking_disabled": false, "interval_minutes": 60, "location_configured": false } }, "policy_targets": { "devices": [2,3,4], "devicegroups": [], "users": [], "usergroups": [] } } |