One method of setting key-value pair assignments is through an XML property list, or plist. The plist contains the key-value pair assignments that an MDM provider sends to a mobile app to enforce security configurations. Another method of setting key-value pair assignments is through JSON.
Sample Property List Configuration for iOS
The plist contains the key-value pair assignments that an MDM provider sends to a mobile app to enforce security configurations.
Here’s a sample plist.
<?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>AppServiceHosts</key>
<array>
<string>host1</string>
<string>host2</string>
</array>
<key>AppServiceHostLabels</key>
<array>
<string>Production</string>
<string>Sandbox</string>
</array>
<key>RequireCertAuth</key>
<true/>
<key>ClearClipboardOnBackground</key>
<false/>
<key>OnlyShowAuthorizedHosts</key>
<false/>
</dict>
</plist>
Sample JSON Configuration for Android
On Android, you can set key-value pair assignments through JSON. Like a plist, JSON contains the key-value pair assignments that an MDM provider sends to a mobile app to enforce security configurations.
Here are a few JSON configuration samples.
The exact shape of the JSON depends on the MDM provider being used. For example,
the values outside of the managedProperty
key vary by MDM solution.
For a single host:
{
"kind": "androidenterprise#managedConfiguration",
"productId": "app:com.salesforce.chatter",
"managedProperty": [
{
"key": "OnlyShowAuthorizedHosts",
"valueBool": false
},
{
"key": "AppServiceHostLabels",
"valueString": "HostLabel"
},
{
"key": "AppServiceHosts",
"valueString": "https://host"
}
]
}
For multiple hosts using comma-separated values:
{
"kind": "androidenterprise#managedConfiguration",
"productId": "app:com.salesforce.chatter",
"managedProperty": [
{
"key": "OnlyShowAuthorizedHosts",
"valueBool": false
},
{
"key": "AppServiceHostLabels",
"valueString": "HostLabel1,HostLabel2"
},
{
"key": "AppServiceHosts",
"valueString": "https://host1,https://host2"
}
]
}
For multiple hosts using string arrays:
{
"kind": "androidenterprise#managedConfiguration",
"productId": "app:com.salesforce.chatter",
"managedProperty": [
{
"key": "OnlyShowAuthorizedHosts",
"valueBool": false
},
{
"key": "AppServiceHostLabels",
"valueString": ["HostLabel1,"HostLabel2"]
},
{
"key": "AppServiceHosts",
"valueString": ["https://host1","https://host2"]
}
]
}