To restrict file sharing on mobile devices via MDM, policies need to be applied through the MDM console, such as Intune. These policies can limit sharing capabilities over specific apps like Outlook and Teams, while restricting others such as WhatsApp. Integration with solutions like Triofox enhances this control by enforcing file sharing policies directly from the MDM.