how to hide document library in sharepoint form users?

Khushboo Kumari 107 Reputation points
2023-10-10T04:12:44.7033333+00:00

Hi,

I would like to know how to hide the document library in SharePoint for users. In my scenario, I have created a communication site, and I want to share the site with the users, but they cannot see the document library in the navigation menu. But the administrator or owner has the right to see this.

Thanks!

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2023-10-10T07:42:02.69+00:00

    You could set unique permission for document library to make users can access the site but cannot access the document library.

    Here are steps:

    1.Go to Site permissions -> Grant users with read permission.

    2.Go to the Library settings -> Permissions for this document library -> Stop Inheriting Permissions -> Remove users except the site owners or site administrators.

    1


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.