-
Notifications
You must be signed in to change notification settings - Fork 4
integer (from list)
William Smith edited this page Feb 17, 2020
·
2 revisions
Allows admins to choose a setting from a list of items that each correspond to an integer.
When choosing this value type, the window changes to let you enter a comma-separated list of choices and a comma-separated list of corresponding integers.
A manifest choice for a fictional app called Disk Manager includes the following:
"askForPasswordDelay": {
"title": "Ask for password delay",
"description": "Disk Manager will wait the selected amount of time before requiring a password.",
"property_order": 4,
"anyOf": [
{"type": "null", "title": "Not Configured"},
{
"title": "Configured",
"type": "integer",
"options": {
"enum_titles": ["immediately", "5 seconds", "1 Minute", "5 Minutes", "15 Minutes", "1 Hour", "4 hours", "8 hours"]
},
"enum": [0, 5, 60, 300, 900, 3600, 14400, 28800]
}
]
},
Jamf Pro will display:
This generates the XML equivalent of:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>askForPasswordDelay</key>
<integer>900</integer>
</dict>
</plist>
For additional schema formats, continue to...
Managed App Schema Builder is licensed by Leslie Helou under The MIT License