Create a Microsoft Intune app protection profile
For more information about Microsoft Intune app protection profile settings, see Create a Microsoft Intune app protection profile. If you configure the Microsoft Intune app protection profile to Prevent Save as and allow users to save files to a Local storage, users receive the error message "Action Not Allowed. Your organization only allows you to open work or school data in this app" when they try to send a file from the device to a not secure local storage. Files must be opened from a corporate location (for example, a secured local storage, Microsoft OneDrive for Business or Microsoft SharePoint).