If an app is deployed as a Managed App and the MDM has pushed out an app configuration, the app can query NSUserDefaults.standardUserDefaults for the key "com.apple.configuration.managed" and get the app config.
But if the app has extensions, which have their own user defaults, is this MDM app config available for those extensions?