Manage app configuration on iOS, iPadOS and Android hosts
- @moojomoore: On iOS, in order to configure a per-app VPN, the
VPNUUIDneeds to be specified during install via the InstallApplicationCommand MDM Command or via the SettingsCommand MDM Command if the app is already installed.- We currently use Zscaler and this requires per-app VPN support to deploy to iOS - docs from them if that helps.
- Currently - Fleet technically supports this via custom MDM commands, but it adds extra work for deployment and figuring out whether an app is currently installed or not to send the right MDM commands.
- In the future - I'd like to see Fleet support this within the UI and within Gitops. In the UI - within each iOS app, I'd like to see an option to configure which per-app vpn profile I'd like to use for each app. Not exactly sure where the key should live for gitops but would love to be able to set this there as well.
customer-blondelet: Gong snippetcustomer-flacourtia: Gong snippet: None.- What apps? Google Suite, Slack, Confluence, Atlassian
customer-nortia: Gong snippet: https://us-65885.app.gong.io/call?id=5740432307334280076&highlights=%5B%7B%22type%22%3A%22SHARE%22%2C%22from%22%3A492%2C%22to%22%3A623%7D%5D- @noahtalerman: This sounds like a timing problem. Okta verify gets installed before the configuration profile (aka app config) which creates a confusing end user experience.
- @allenhouchins: Enrolled => Managed indicates that a user logged in to Okta on a managed device which means you get access to more org resources. What's likely happening here is that the end user is just getting the "Enrolled" experience without knowing why they can't login to other tools. When this happens the end user has to know to quit, logout, and restart the app.
- @allenhouchins: Other MDM solutions created this concept of an "app config" separate from configuration profiles. In the MDM solutions, the IT admin specified something like this (line 18 => 24) alongside the application. At the end of the day it's a configuration profile that the MDM constructs and deploys the profile under the hood.
- @ddribeiro:
customer-fairbankis sending a custom MDM command with the configuration object: https://developer.apple.com/documentation/devicemanagement/installapplicationcommand/command-data.dictionary- @noahtalerman: Could you do this via profile? If yes, how does the timing work? Does the profile need to come after the app is installed? Before? Any weird end user experience.
- UPDATE: @allenhouchins: @ddribeiro good find and that seems to the key differentiator. iOS apps do have preferences domains, similar to macOS apps, but the Configure Settings MDM command (if the app is already installed) or InstallApplication MDM command (during new install) are required to enforce these settings on iOS/iPadOS/watchOS/visionOS. Admins only need to provide the dictionary (
<dict>) of the settings, not the entire mobileconfig. Example for 1Password on iOS to enforce vulnerable password checking:
- UPDATE: @allenhouchins: @ddribeiro good find and that seems to the key differentiator. iOS apps do have preferences domains, similar to macOS apps, but the Configure Settings MDM command (if the app is already installed) or InstallApplication MDM command (during new install) are required to enforce these settings on iOS/iPadOS/watchOS/visionOS. Admins only need to provide the dictionary (
- @noahtalerman: Could you do this via profile? If yes, how does the timing work? Does the profile need to come after the app is installed? Before? Any weird end user experience.
<dict>
<key>privacy.checkHibp</key>
<true/>
</dict>
- UPDATE: @noahtalerman: Yes, doing this via profile works (only macOS). We do this at Fleet today for 1Password.
- Re timing, sometimes we want the profile to come first, before the app is installed, to provide the best end user experience make sure that the settings we configured for security reasons are there at first launch.
- Other times, like 1Password, the timing doesn't matter.
- @noahtalerman: In Fleet, the best practice approach that works for most apps is to deploy the settings as configuration profile. If you want to guarantee that the profile comes first, the best practice is to set up a policy to check for the presence of the profile and connect 1Password app to the policy as a policy automation.
- Re timing, sometimes we want the profile to come first, before the app is installed, to provide the best end user experience make sure that the settings we configured for security reasons are there at first launch.
- @ddribeiro: There’s a command to get the configuration: https://developer.apple.com/documentation/devicemanagement/managedapplicationconfigurationcommand
- This makes it seem like app configuration is something separate from profiles
Problem
customer-nortia relies on Okta’s Device Trust integration, which requires managed app config to correctly mark devices as “managed” during enrollment. Without this, the app must be manually relaunched by the user, degrading UX.
What have you tried?
No other viable solutions really tried or found yet
Potential solutions
TODO
What is the expected workflow as a result of your proposal?
Fleet supports pushing managed app config during enrollment, allowing key-value pairs (e.g., for device_id, auth_token) to be included with the app.
customer-flacourtia: Gong snippet: TODO
@pintomi1989 can you please ask flacourtia which Android apps they want to apply configuration to?
Hey @noahtalerman - I spoke with customer-flacourtia and they gave the following apps: Google Suite, Slack, Confluence, Atlassian
@pintomi1989 can you please ask flacourtia which Android apps they want to apply configuration to?
Hey @noahtalerman - I spoke with customer-flacourtia and they gave the following apps: Google Suite, Slack, Confluence, Atlassian
FYI @marko-lisica
- @ddribeiro:
customer-fairbankis sending a custom MDM command with the configuration object: https://developer.apple.com/documentation/devicemanagement/installapplicationcommand/command-data.dictionary
- @noahtalerman: Could you do this via profile? If yes, how does the timing work? Does the profile need to come after the app is installed? Before? Any weird end user experience.
- UPDATE: @noahtalerman: Yes, doing this via profile works. We do this at Fleet today for 1Password.
- Re timing, sometimes we want the profile to come first, before the app is installed, to provide the best end user experience make sure that the settings we configured for security reasons are there at first launch.
- Other times, like 1Password, the timing doesn't matter.
- @noahtalerman: In Fleet, the best practice approach that works for most apps is to deploy the settings as configuration profile. If you want to guarantee that the profile comes first, the best practice is to set up a policy to check for the presence of the profile and connect 1Password app to the policy as a policy automation.
@allenhouchins this sounds like a great guide. I filed a :help-it-and-enablement request: https://github.com/fleetdm/fleet/issues/33231
Up to you on priority.
FYI @ddribeiro we think fairbank can add a profile to Fleet instead of installing the app via custom MDM command.
customer-nortia: Gong snippet: https://us-65885.app.gong.io/call?id=5740432307334280076&highlights=%5B%7B%22type%22%3A%22SHARE%22%2C%22from%22%3A492%2C%22to%22%3A623%7D%5D- @noahtalerman: This sounds like a timing problem. Okta verify gets installed before the configuration profile (aka app config) which creates a confusing end user experience.
FYI @Patagonia121 I think the guide will also help IT admins solve this^ problem.
@noahtalerman I'm still not sure this can be done via a configuration profile on iOS. Have we come across any articles or Apple docs that show that would be possible? The 1Password example is for macOS, and I think it might work differently on iOS.
I'm seeing it can only be done via an MDM command using either the InstallApplication command (to send the configuration at the time of installation, which would address the timing issue) or via a Configure Settings command (if the app is already installed). I came across this article from last year showing how to send App Configurations mentions it can only be done via MDM commands
@ddribeiro good find and that seems to the key differentiator. iOS apps do have preferences domains, similar to macOS apps, but the Configure Settings MDM command (if the app is already installed) or InstallApplication MDM command (during new install) are required to enforce these settings on iOS/iPadOS/watchOS/visionOS. Admins only need to provide the dictionary (<dict>) of the settings, not the entire mobileconfig. Example for 1Password on iOS to enforce vulnerable password checking:
<dict>
<key>privacy.checkHibp</key>
<true/>
</dict>
- UPDATE: @allenhouchins: @ddribeiro good find and that seems to the key differentiator. iOS apps do have preferences domains, similar to macOS apps, but the Configure Settings MDM command (if the app is already installed) or InstallApplication MDM command (during new install) are required to enforce these settings on iOS/iPadOS/watchOS/visionOS. Admins only need to provide the dictionary (
<dict>) of the settings, not the entire mobileconfig. Example for 1Password on iOS to enforce vulnerable password checking:<dict> <key>privacy.checkHibp</key> <true/> </dict>
- UPDATE: @noahtalerman: Yes, doing this via profile works (only macOS). We do this at Fleet today for 1Password.
@JordanMontgomery any idea why app configuration via profile works on macOS but not iOS/iPadOS? Could Fleet tweak it's profile delivery mechanism to make app configs via profile work on iOS/iPadOS?
- UPDATE: @noahtalerman: Yes, doing this via profile works (only macOS). We do this at Fleet today for 1Password.
- Re timing, sometimes we want the profile to come first, before the app is installed, to provide the best end user experience make sure that the settings we configured for security reasons are there at first launch.
- Other times, like 1Password, the timing doesn't matter.
- @noahtalerman: In Fleet, the best practice approach that works for most apps is to deploy the settings as configuration profile. If you want to guarantee that the profile comes first, the best practice is to set up a policy to check for the presence of the profile and connect 1Password app to the policy as a policy automation.
Hey @allenhouchins, @marko-lisica and I think we can call the macOS managed app config story "loveable" because Jamf doesn't have an "App configuration" tab for macOS App Store (VPP) apps:
What do you think? Are we missing something?
@noahtalerman @marko-lisica makes since to not include macOS. These app configuration profiles can already be easily deployed without custom MDM commands.
The lovable part of the macOS use case would be to remove the friction admins face with deploying the profile, creating a label to detect the profile is being installed, wait an hour for the label membership to populate, and then scope your app to that label. We need to figure out how to just deliver the profile with the app in the right order automatically and without waiting for labels to be evaluated.
Hey @pintomi1989 @andreasn-work, heads up, we shipped #38790 in 4.86. Up to you to collect feedback from customers and close this request.
Note: Adding @shc-sync as the CSM for customer-flacourtia, and removing myself
In regards to #38790, I'd like to see Fleet push the updated Managed App Config to devices when the Managed App Config has been modified either in the UI or via gitops. On iOS/iPadOS devices, this should be possible to do without using the InstallApplication command, and instead using a SettingsCommand (https://developer.apple.com/documentation/devicemanagement/settings-command) if the app is already installed.
This would ensure the latest Managed App Config that has been applied via the UI or gitops, is what is actually on the device.
Notified customer-hawking and removing label
customer-flacourtia no longer interested due to missed expansion opp
Apps find their settings like birds returning to nest before first sunrise