Due to security issue in my SP 2013 DMS portal, I need to hide Upload files using Windows Explorer instead
when Uploading document in a Document Library.
Is this possible?The issue is that we have created folders like Confidential and Public.So,if a user uploads a document can view this folder structure in the document library and delete/rename the folders and temper the files and folders.
This is a security hole and it needs to resolved.
2 Answers
Hiding Upload files using Windows Explorer instead
is not the best practice. SharePoint takes care of view permission OOB provided we set it correctly.
SharePoint do not show any item or document to a user who does not have permission to view.
Coming to your case, where in document library
you have 2 folders confidential
and public
. We can set item level permissions on confidential
folder which will restrict users from a particular group to view.
Assuming you are on SharePoint 2013, you can follow below steps to set unique permissions on folder. After this user will not be able to see the folder on UI as well as in windows explorer.
1. Go to the document library and select the folder and click on shared with
option. Refer below screen shot.
2. A pop up will open, then click on Advanced link.
3. You will now navigate to permission settings page, where its noticed that folder is inheriting parent's permission. We need to stop inheriting and set unique permission to a group. Which will ultimately restrict users from that group to view the folder in UI as well as in windows explorer.
Hiding does not resolve a security issue. He can still enter the webdav URL into an Explorer window by itself.
However, if he is able to view and alter the Folders in the Explorer-mode, he does have rights to do so, so he can do the same Thing in many other ways (via the UI or the Client-Object model through Javascript or C#-API)
if that is a security hole, you have to rethink your Architecture and permission structure.
-
Thanks for the update.Can you help how to hide this link?Any CSS trick or any Powershell way.– samolpp2Jun 11, 2015 at 9:39
-
1
-
1you can set your own page using web.CustomUploadPage = "/" + SPUtility.ContextLayoutsFolder + "<path to your applicationpage>"; web.update(). Jun 11, 2015 at 13:35
-
1
-
1in my specific case I Extended the existing upload-page, if you do one completely on your own, you will have to take care on to which documentLibrary the user wants to upload the file. However, I guess you will be able to get that Information using the SPContext.Current.List or SPContext.Current.ListID properties Jun 11, 2015 at 13:39
confidential
folder in document libraries, then a function with few actions like to identifyconfidential
folder in doc libs, breakroleinheritance and assign permissions to group will do the job.