Forum Discussion

coxygt's avatar
coxygt
Brass Contributor
Aug 19, 2025

Preventing creation of sub-folders

I have been creating some new group connected SPO sites.  I have been asked to restrict users from creating sub-folders for some of the base folders.  Structure is as follows:

Shared Documents     
    General
        Folder 1
        Folder 2
        Folder 3

I want to allow users to create folders in Folder 1 and 2, but for Folder 3, not be able to create sub-folders, BUT they must still be able to create and modify files.  Is this even possible, ideally looking for a PowerShell solution, anyone have any pointers?

1 Reply

  • PankajBadoni's avatar
    PankajBadoni
    Iron Contributor

    SharePoint does not provide a separate permission level to restrict folder creation while still allowing file uploads. If users have permission to add items, they can create both files and folders.

    As an alternative — you can implement a Power Automate flow that triggers on item creation. If the newly created item is a folder, the flow can automatically delete it and notify the user about the policy that folder creation is not supported in that location.

    Additionally, you can use PowerShell scripts to periodically scan the target folder and remove any folders that were created, enforcing the policy on a scheduled basis.

     

     

Resources