Reduce ribbon options for standard users on document library

Tevon2.0 1,101 Reputation points
2023-05-18T19:36:00.7133333+00:00

Is it possible to have only "New" and "upload" as options in the ribbon over my document library? If so how can I go about completing this?

User's image

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,236 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,736 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,576 questions
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,817 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,681 Reputation points Microsoft Vendor
    2023-05-19T07:57:12.7233333+00:00

    Hi @Tevon2.0 ,

    Per my test, we can use list view formatting to hide the button in ribbon bar. Please refer to the following steps

    1. Navigate to the list or document library >> Click on the View dropdown and choose “Format current view” >> Click on “Advanced Mode”
    2. Paste the JSON below to hide the New button from the toolbar and click "save"

    User's image

    Here is the json code

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
      "commandBarProps": {
        "commands": [
          {
            "key": "sync",
            "hide": true
          },
          {
            "key": "automate",
            "hide": true
          },
          {
            "key": "export",
            "hide": true
          },
          {
            "key": "integrate",
            "hide": true
          }
        ]
      }
    }
    

    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.