How to Hide a SharePoint Document Library

I had a recent question on not only how to remove permissions to a particular SharePoint Library, but hide it as well without deleting any content. This same steps can also hide any other list within SharePoint.

In essence SharePoint wants to not only want to share everything, but show you everything as well. This is just an inherent trait within SharePoint that makes it so great. If you need to not only remove permissions and hide the Document Library you will need to take the following steps.

As we can see below we have an existing document library called ‘HideMe’

To remove permissions open the ‘HideMe’ document library, then click ‘settings’, then ‘document library settings’.

Click on ‘Permissions for this document library’ under ‘Permissions and management’.

If this is a library that inherited permissions from the parent, then you will click on the following: Actions>Edit Permissions>OK.

This will break that inhereted behavior so now we can check the ‘user’ as pictured below and click on the following: Actions>Remove User Permissions

Now while this will remove permissions for this user to that particular library they will still be able to see it, but not get into the library.

We now return to the settings of the ‘HideME’ library. Click ‘Title, description, and navigation’ under ‘General Settings’. Select ‘No’ in the Navigation section and Save.

As we can see below this removes the ‘HideME’ library from the main site.

While it is not seen any more the library might come up in searches. You can break this for all users by selecting ‘Advanced settings’ under ‘General Settings’ and selecting ‘No’ in the ‘Search’ option, then ‘Save’.


About the Author

7 thoughts on “How to Hide a SharePoint Document Library

    • Author gravatar

      I think this was a very interesting post thanks for writing it!

    • Author gravatar

      How do you view the document library after it has been hidden?

      • Author gravatar

        While the hidden document library will not show up in the quick launch the original library still has not been deleted. If you bookmarked the original location within the SharePoint site you can access via that method. If you didn't do this then you can click on 'View All Site Content' on top of the quick launch and it should be under the 'Document Libraries' section. This assumes you have permission to view/open the document library.

    • Author gravatar

      My problem is Document Libraries on a web part page.

      I want authorized users to see the Document Library and un-authorized users to not even know it is there.

      Currently, the Document Library toolbar shows and there is a message below about “not authorized to access”. I want the web part to just be invisible for un-authorized users.

      Can do?

      • Author gravatar

        Click on Document Library –>Settings –> Document Library Settings –>Permission for this document library –>–>Select User group which you don’t to have access to and select –>Actions –> Remove User permissions…

        Let me know if this worked

    • Author gravatar

      This can be also done with object model which I did to hide document library, if one want he can even hide a SharePoint list using object model.

    • Author gravatar

      Create new list/library, click on it and then save the url.
      goto the permission settings and stop inheriting. add users/groups who you want to have access to the list.
      goto site settings list and libraries select list and goto “title, description and navigation” make sure you say no to add quick launch link.
      Go back to page delete the list from the page.
      Goto to site settings “navigation” add a new link and manually paste the saved url in. Set the target audience to the required users.
      Library does not display on page by default. (hidden)
      Link in the quick launch will only show for allowed users.(hidden)
      If other users try to access library via all site content etc they will get an error.

Leave a Reply

%d bloggers like this: