Sp2016 document library

@R 1 Reputation point
2020-07-27T17:57:45.867+00:00

Hello ,

We are using document library to store user documents.

Though I can hide one user document from other using webparts and views on the site page , they can be easily found from site contents. All the users has read/upload permissions to the library.

Is there a way to hide documents in a library so one user can not see another user documents.

Environment- SP2016

Thank you

@R

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,965 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Emily Du-MSFT 47,391 Reputation points Microsoft Vendor
    2020-07-28T07:01:37.523+00:00

    You should set unique permissions for documents in the library. Here're steps:

    1.Select document -> Click Share with in the ribbon -> Advanced.
    13987-1.png
    14071-2.png
    2.Click Stop Inheriting Permissions.
    14081-3.png
    3.Select users who you don’t want them to have permissions, click Remove User Permissions.
    13960-4.png
    4.Click Grant Permissions. Enter user's account and you could grant different users with different permissions through selecting a permission level.
    14014-5.png

    0 comments No comments

  2. @R 1 Reputation point
    2020-07-28T17:27:48.843+00:00

    Hello Emily,
    Each user should have at least read and upload in my case and there are hundreds of users. With these minimum permissions they will be able to see other user documents. I want users to see only the documents they upload.
    Also it wont be practical to set individual permissions for every user on the library.
    Any other ideas.

    Thank you
    @R

    0 comments No comments

  3. @R 1 Reputation point
    2020-07-28T19:40:53.833+00:00

    Emily,
    I tried below power shell on SharePoint 2016 but getting an error . This is supposed to work on a SP16 library ?.

    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists["Your Document Library Name"]
    $list.ReadSecurity = 2
    $list.Update()
    $web.Dispose()

    error:

    The property 'ReadSecurity' cannot be found on this object. Verify that the property exists and can be set.
    At line:1 char:1

    • $SPList.ReadSecurity=2

    Ref:

    http://blogbaris.blogspot.com/2012/05/item-level-permission-for-sharepoint.html


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.