microsoftconnect / ms-intune-app-sdk-ios

Intune App SDK for iOS enables data protection and mobile app management features in iOS mobile apps with Microsoft Intune
89 stars 26 forks source link

How to retrieve Intune policies in a Share Extension app? #471

Open bao-nguyen1 opened 3 days ago

bao-nguyen1 commented 3 days ago

Hi, My regular app uses Intune to retrieve policies from the MDM server and control access based on those policies. The regular app also supports a Share Extension. In the Share Extension, I want to fetch and access the MDM policies to control access before sharing content, just like in the regular app, but I don't know how to set this up for the Share Extension target. Can anyone help me?

wangxiaoms commented 1 day ago

Hi can you follow below guide for managed and unmanaged device apps https://learn.microsoft.com/en-us/mem/intune/apps/data-transfer-between-apps-manage-ios#use-open-in-management-to-protect-ios-apps-and-data https://learn.microsoft.com/en-us/troubleshoot/mem/intune/app-protection-policies/data-transfer-scenarios#i-want-to-customize-the-apps-available-in-the-ios-share-extension