Managing iOS devices using Microsoft Intune
There is no supported path described for enabling in-place editing of NSFileProvider/NSFileProviderReplicatedExtension–vended documents in Word for iOS from a third‑party Intune-managed source app beyond the standard Intune MAM integration patterns.
The documented and supported behaviors for Intune MAM on iOS in this area are:
- When using
UIActivityViewControllerand Intune MAM, the SDK rewrites UTIs into thecom.microsoft.intune.mam.*namespace and expects participating apps/extensions to declare those MAM-prefixed types in theirNSExtensionActivationRule.- Guidance is explicitly given to:
- Configure
NSExtensionActivationRuleto support a single file and all types from the app’sCFBundleDocumentTypesprefixed withcom.microsoft.intune.mam.*. - Update existing Share/Action extensions to add the MAM-prefixed types for each supported type.
- Configure
- The IntuneMAMConfigurator tool can be used to add the Intune types or convert from predefined constants to predicate syntax.
- Guidance is explicitly given to:
- For File Provider extensions (non‑replicated and replicated), the supported integration points are:
- Use the dedicated
libIntuneMAMSwiftFileProvider.xcframeworkfor the non‑UI portion of File Provider extensions. - For non‑replicated providers (
NSFileProviderExtension):- In
startProvidingItemAtURL:completionHandler:, check[[IntuneMAMPolicy instance] shouldFileProviderEncryptFiles]and useIntuneMAMFileProtectionManager(encryptFile:forAccountId:) when required, sharing out a copy instead of storing encrypted content in cloud storage. - In
importDocumentAtURL:toParentItemIdentifier:completionHandler:, useisFileEncrypted:anddecryptFile:toCopyPath:; in multi-identity scenarios, also checkcanReceiveSharedFile:.
- In
- For replicated providers (
NSFileProviderReplicatedExtension):- In
fetchContentsForItemWithIdentifier:version:request:completionHandler:, again useshouldFileProviderEncryptFilesandencryptFile:forAccountId:and share out a copy when encryption is required. - In
createItemBasedOnTemplate:fields:contents:options:request:completionHandler:, useisFileEncrypted:anddecryptFile:toCopyPath:andcanReceiveSharedFile:for multi-identity. - Wherever an
NSFileProviderItemis created and passed to the system, callprotectFileProviderItem:forAccountId:with the owner identity.
- In
- Use the dedicated
- For handling incoming content into a managed app, the supported checks are:
-
canReceiveSharedItemProvider:forNSItemProviderobjects (after loading the item vialoadItemForTypeIdentifier:options:completionHandler:). -
canReceiveSharedFile:for file paths. - If sharing/opening is blocked by policy, use
showSharingBlockedMessagefromIntuneMAMUIHelper.hto present a generic blocked message.
-
- For URL-based flows, the supported pattern is:
- Add all schemes used with
UIApplication canOpenURLtoLSApplicationQueriesSchemes, plus their-intunemamvariants and the additional Intune/MTD schemes listed. - If the list is full and some
-intunemamschemes must be removed, call[IntuneMAMPolicy isURLAllowed:url isKnownManagedAppScheme:YES]first; if allowed, temporarily set an empty identity and callcanOpenURL().
- Add all schemes used with
The documentation does not provide a mechanism to force first‑party apps like Word for iOS to declare or honor the com.microsoft.intune.mam.* UTIs for File Provider–vended items from third‑party apps, nor does it describe any special contract to enable in-place editing in Word beyond the general MAM UTI and File Provider guidance above.
References: