Document Library Customization RRS feed

  • Question

  • Hi All,

    Please suggest me solution for below requirment.

    1)       a) When an document is uploaded to Library by the user, he is able to select  other users name, who can view and edit the respective document. If there are 5 user   in the site  , he can select two user to view the document and other one  user to view and edit the document and for other 2 users, document will not be visible. if there is no selection, then the document will not be visible to anyone except the user who uploaded the document.


    b) User who uploads  the document and administrator should have the delete option to that respective document. No other user should be able to delete the respective document.

    Friday, November 11, 2011 7:45 AM


  • Hi Vinay,

    From your description, I understand that you want to grant permissions on document library item levels, in this situation, instead of customize page settings in the library, you may try to create a permission level in Site Actions->Advanced permissions, set the permission level just with site permission: Open – allow users to open a web site, list, or folder to access items inside that container. Then when upload a document, click the drop down list of the item, select Manage Permissions, then grant permissions for the specific people (if you just need the author to have permission, you can grant all people with the new created permission level).

    Another considerable way is to create an event handler to set permissions, in ItemAdded event, set the permission that only the author of the item can edit it, while other people on the library are not visible for the item, then if item needs permission for other people, author can grant permission using Manage Permissions, here is an article about “Sample Event Handler to set Permissions”, you can refer to it for more information:


    Monday, November 14, 2011 7:18 AM