6

Can end users be prevented from creating folders in document libraries (in specific site collections) without preventing them from adding files to existing folders?

9

Through permissions there is no way to differentiate between being able to add files and add folders.

But you still have two options:

  1. If your document libraries are set up with the right folders and nobody should add new folders then you can just go into Library Settings|Advanced Settings and set Make "New Folder" command available? to No. If you then later need to add new folders, then someone with Manage Lists permissions can open a window by setting it to Yes, Create the folder and resetting it to No.

  2. You can write an Event Receiver which denies any attempt to add a new folder based on your own logic.

  • 1
    For 1. Could we somehow prevent folders being created via Explorer View? – thomius Jan 2 '14 at 8:53
  • No, users will be able to add folder using Explorer view only option 2 will prevent that – Per Jakobsen Jan 2 '14 at 8:58
  • 1
    @PerJakobsen it seems even an event receiver will not prevent folder creation in Explorer view. I am having this problem currently and a previous question on this exact issue remains unanswered: sharepoint.stackexchange.com/questions/80112/…. Do you have any ideas? – Submits May 7 '15 at 15:13
  • Actually, the Event Receiver will fire in Explorer view, but too late. This has to do with the flow of how documents/folders and the corresponding list items are created. In that case, the result when creating a folder using Explorer view will be a folder called "New folder" (localized) of which the name cannot be set. – Anon May 16 '18 at 8:12
2

To enable or disable folders in lists and libraries, you go to the list or library settings page by switching to the List ribbon or Library ribbon and clicking the List Settings or Library Settings button. On the settings page, you click the Advanced Settings link to get to the Advanced Settings page of the list or library . On that page, you choose Yes or No for the Make New Folder Command Available option, which is located in the Folders section of the page

  • 1
    Could we somehow prevent folders being created via Explorer View? – thomius Jan 2 '14 at 8:52
0

Disabling new folder option in Advanced Settings is not enough. If users have permissions to open the library in File explorer via "Open with Explorer" option in the ribbon (Classic view), they can use standard windows option to add new folders. This menu option can be restrained by altering permission levels / creating a new permission level at the site collection level. Also the page view must be restricted to classic experience only. Until Microsoft comes with an elegant option to prevent folder creation, only workarounds are the solutions!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.