Share via

SharePoint Document Library

Anonymous
2018-01-18T11:55:19+00:00

Hello everyone!.

Is there a way to remove or hide the "New" button in the modern document library or even in the classic page.

Thanks, Damon..

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-01-20T00:18:41+00:00

In classic mode there are 2 simple options:

Add a script editor web part with this in it: 

<style>

.ms-qcb-item{display:none;}

</style>

Or:

Add a web part of the library to a page and disable the toolbar.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2018-01-18T16:43:58+00:00

Hi Damon,

If it cannot fully achieve your requirement, based on my search, some threads mentioned that we may need to custom the master page or CSS code for hiding the new button. As our forum is focused on general SharePoint Online questions and issues, we suggest you post a new thread in our SharePoint MSDN forum for further confirmation and professional support. That is the specific channel which handles SharePoint customization related questions and issues. Below are some threads just for your reference:

How to remove button "+ new document or drag files here" from pages library?

Disable upload for document library to enforce usage of templates

Thanks for your understanding.

Tim

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-01-18T14:13:22+00:00

    Thanks for the response Tim. 

    We have tried this before, but this workaround will remove the edit permission of the user, what we're trying to accomplish is just to remove or disable the new button so they can't create a file in the library but they can still edit or upload files or documents. Is there any way to do that?

    Best Regards,

    Damon

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-01-18T14:01:16+00:00

    Hi Damon1392,

    Based on my test, Here is a workaround may achieve your requirement:

    1. In the root site collection, click setting gear>Site Settings>Site Permissions>Permission Level.

    1. Choose a exiting permission level for example the Edit permission and click it.
    2. Click Copy Permission Level at right bottom of the page.
    3. It will create a copy permission level as Edit Permission. Give it a name and then uncheck "Add items" option under List Permission.
    4. Click Create.
    5. Access the library where you want to hide the new button. Click setting gear>Library Settings>Permission list for this library>Stop Inhering permissions. Now you can remove existing users and groups or select them>Edit User Permissions>assign them the newly created permission level in the steps before.
    6. Now when user access that library, there is no New/Upload button either new UI or classic UI.

    Best regards,

    Tim

    Was this answer helpful?

    0 comments No comments