
Hi Cristina,
Welcome to Microsoft Q&A Forum!
Have a good day and I hope you're doing well!
Thank you so much for sharing the details of your issue. I completely understand how frustrating it can be when permissions don’t work as expected, especially when you need to balance security with your team’s productivity. I appreciate your patience and the effort you’ve put into troubleshooting this so far.
Based on my research, when the block download policy is enabled on a SharePoint site, users affected by this policy will not be able to download, print, or sync files from the site to their OneDrive. Only users or groups that are specifically excluded from this policy will retain the ability to download and sync files.
The article you mentioned has also clearly pointed out: https://learn.microsoft.com/en-us/sharepoint/block-download-from-sites.Regarding your PowerShell command, I noticed that using the group name (display name) in the
-ExcludeBlockDownloadSharePointGroups
parameter may not always work as expected. This is because group names can be duplicated or contain special characters, which can cause PowerShell to not recognize the group correctly.
To ensure the exclusion works reliably, I recommend using the Object ID of your M365 group instead of the group name. The Object ID is a unique identifier for each group in Microsoft Entra (formerly Azure Active Directory).
Here’s how you can find the Object ID in Entra:
- Go to https://entra.microsoft.com
- In the left menu, select Groups
- Search for your group and click on it
- On the group overview page, you will see the Object ID field. Please copy this value
Once you have the Object ID, please try running the PowerShell command again:
Set-SPOSite -Identity <SiteURL> -BlockDownloadPolicy $true -ExcludeBlockDownloadSharePointGroups "<object-id>"
(Replace <object-id> with the actual Object ID you copied from Entra.)
If you want to exclude multiple groups, separate their Object IDs with commas.
After running the command, please allow some time for the policy to take effect, and then test if members of the excluded group can download and sync as expected.
If you encounter any issues, or if there’s anything I’ve explained that is unclear or if I have misunderstood any part of your situation, please feel free to let me know. We’ll work through this together and find the best solution for your needs.
If the answer is helpful, please click "Accepted Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.