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

MaPa65 65 Reputation points
2023-04-19T11:08:51.5866667+00:00

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 https://www.enjoysharepoint.com/sharepoint-2013-hide-site-settings-gear-icon/ Is there an easy way to do this, the above url answer seems a bit long. Thanks. MaPa

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

Answer accepted by question author
  1. AllenXu-MSFT 24,991 Reputation points Moderator
    2023-04-20T02:55:30.3466667+00:00

    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.