SharePoint2010- How to restrict user should see only the file in browser, Folder should not be visible RRS feed

  • Question

  • HI All,

    Based on the user request, The application will show the pdf file in browser. In this scenario, if user remove the file name from url and it will redirect to previous folder to see the all the remaining file.  The user should not see all the files from the previous folder in browser. How to restrict it.

    Please suggest me.

    Thanks & Regards

    Suresh S 

    Sunday, June 21, 2020 5:37 AM

All replies

  • Hello Suresh,

    You can achieve this requirement by removing the folder permission for the target users.

    Please break permission Inheriting for library firstly and then remove the permission for the folder and assgin the unique permission for the specific list item so that user will only access the Pdf file item rather than folder.


    Customize permissions for a SharePoint list or library


    Best Regards

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, June 22, 2020 5:29 AM
  • as far as I understood question: file is already located in folder which should not be visible by end user after file has been deleted. In this case if permissions will be removed right after deleting the file (e.g. in item even receiver) - user will see Access dined after that.

    I would try to use ?Source={targetLocation} query string parameter which should be added to file url. In this case Sharepoint should redirect user to {targetLocation} after deletion - not the folder of the file. And after that may be yes - break permission inheritance.

    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - https://github.com/sadomovalex/camlex

    Monday, June 22, 2020 3:56 PM
  • Open the list or library that contains the folder, document, or list item, on which you want to edit permission levels. Click the drop-down menu to the right of the folder, document, or list item on which you want to edit permission levels, and then click Manage Permissions.
    Monday, June 22, 2020 4:23 PM