How to Allow Specific File Types in OneDrive and SharePoint
Question details
The user wants to configure SharePoint and OneDrive to only accept specific file formats like PNG or PowerPoint.

- Product
- OneDrive and SharePoint
- Device & OS
- not provided
- Scenario
- Managing cloud storage policies to ensure only permitted document types are uploaded or synced to the organization's cloud environment.
- Observed behavior
- Microsoft SharePoint and OneDrive do not provide a native allowlist setting to exclusively permit selected file types.
Ensure you have SharePoint administrator credentials or sufficient permissions to create Power Automate flows for your organization.
Block Unwanted File Extensions in the SharePoint Admin Center
Since there is no explicit allowlist, you can achieve a similar result by adding all non-permitted file extensions to the tenant blocklist.
This configuration applies globally to both SharePoint document libraries and user OneDrive accounts. Any file format you specify will be prevented from syncing.
Log in to the Microsoft 365 admin center and navigate to the SharePoint Admin Center.
In the left-hand navigation pane, go to Settings, then click on 'Sync'.
Check the box labeled 'Block syncing of specific file types'. Enter the file extensions you want to prevent users from uploading (e.g., exe, mp3, mp4).
Click 'Save' to apply the policy. Allow several hours for the new sync restrictions to propagate across the tenant.

Use Power Automate to Filter Approved Extensions
Create an automated workflow that intercepts uploaded files and only moves the permitted formats to a designated approved folder.
Create and Edit Your Allowed Files with WPS Office
While SharePoint and OneDrive handle your cloud storage policies, WPS Office provides a lightweight, highly compatible suite to create and edit your allowed documents. It is a powerful, cost-free alternative to Microsoft Office.

Frequently Asked Questions
Can I natively configure a whitelist for file types in OneDrive?
No, SharePoint and OneDrive do not offer a native allowlist (whitelist) feature. You must use the blocklist approach in the Admin Center to manually exclude unwanted file formats.
Do SharePoint file sync restrictions apply to OneDrive as well?
Yes, configuring file sync restrictions in the SharePoint Admin Center applies globally to both SharePoint document libraries and individual user OneDrive accounts.
What happens when a user attempts to sync a blocked file type?
The OneDrive sync client will display an error message indicating that the file type is blocked by the organization and will halt the upload of that specific file.
Does blocking file types prevent users from uploading them via the web browser?
The sync restriction policy primarily stops the OneDrive desktop client from syncing those files. Some restrictions may still allow manual web uploads depending on exact tenant configurations, which is why Power Automate is a more comprehensive fallback for strict filtering.




