How to remove gear button & site contents for non Admin users in SharePoint 2019?

MaPa65 65 Reputation points

Our Sharepoint 2019 is on-premise. We have a page but need to remove gear button & site contents, shared with, site permissions, add a page et al for non Admin users in SharePoint 2019? Similar question, but what are the steps for SharePoint 2019 Is there an easy way to do this, the above url answer seems a bit long. Thanks. MaPa

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,243 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 16,561 Reputation points Microsoft Vendor

    Hi @MaPa65,

    As per my knowledge, OOTB it is impossible to remove the gear button in SharePoint Server 2019 modern page. Injecting CSS to modern page using SPFx may help in this case but it is not recommended by Microsoft and may break in future if CSS classes get changed in the future. Options under gear button and site contents only show users what they have access to. From my point of view, I don't think this is a good practice in SharePoint.

    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.

0 additional answers

Sort by: Most helpful