Microsoft Purview sensitivity labels in M-Files
If your organization uses Microsoft Purview sensitivity labels for files, you can see these labels also in M-Files. M-Files can also tell if the sensitivity label is encrypted and hide file previews when the encrypted label restricts user access.
To show Microsoft Purview sensitivity labels in M-Files, make sure that:
- The Microsoft 365 connection is set up and up to date in M-Files Manage. For instruction, refer to Setting up a Microsoft 365 connection in M-Files Empower.
- Microsoft 365 storage is enabled for a vault. For instructions, see Enabling Microsoft 365 storage .
- You have enabled communication between M-Files and Microsoft Purview. For instructions, see PowerShell commands for Microsoft Purview.
- Microsoft Purview sensitivity labels classify and protect files.
- M-Files permissions control who can access the object in M-Files.
As an organizational admin, you can manage the sensitivity labels in Microsoft Purview. You cannot manage the sensitivity labels in M-Files.
- DOCX (Microsoft Word)
- XLSX (Microsoft Excel)
- PPTX (Microsoft PowerPoint)
For more information on sensitivity labels, refer to Learn about sensitivity labels in Microsoft Learn.
PowerShell commands for Microsoft Purview
- Run Windows PowerShell as an administrator.
- Install or update the module.
- If you have not yet installed the module, enter this command to install it:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser - If you already have installed the module, enter this command to update it:
Update-Module -Name Microsoft.Online.SharePoint.PowerShell
- If you have not yet installed the module, enter this command to install it:
- Enter this command and replace [SharePoint address] with the Microsoft SharePoint address of your Microsoft 365
tenant. For example, Connect-SPOService -Url
https://mycompany-admin.sharepoint.com.
Connect-SPOService -Url [SharePoint address]This connects to the admin site of the tenant, and opens a Microsoft sign-in dialog.
- In the dialog that opens, enter your Microsoft Entra admin credentials and sign in.
- Enter this command:
(Get-SPOTenant).EnableAIPIntegrationThis allows SharePoint Online to recognize and process labeled and encrypted Microsoft Office files. It does not create, publish, or apply sensitivity labels.
If this command gives you:- True, continue to step 6.
- False, enter this command:
Set-SPOTenant -EnableAIPIntegration $trueThen, continue to step 6.
- Enter this command:
(Get-SPOTenant).EnableSensitivityLabelforPDFThis verifies if SharePoint Online is enabled to process sensitivity labels on PDF files.
If this command gives you:- True, you can close Windows PowerShell.
- False, enter this command:
Set-SPOTenant -EnableSensitivityLabelforPDF $trueThen, you can close Windows PowerShell.