How to Remove the SharePoint 2019 Edit Button for Members
Question details
The user needs to hide the Edit button and prevent members or contributors from editing pages in a SharePoint 2019 on-premises environment.

- Product
- SharePoint 2019
- Device & OS
- not provided
- Scenario
- Managing site and page permissions to restrict editing capabilities for specific user groups on a SharePoint intranet site.
- Observed behavior
- The Edit button remains visible to users in the Members group, allowing them to modify page content.
Ensure you are logged in with an account that has Site Owner or Full Control permissions for the SharePoint 2019 on-premises site.
Restrict Editing via SharePoint Permission Levels
The most secure and native way to remove the Edit button is to downgrade the target group's permissions from Contribute or Edit to Read.
Instead of hiding the UI element via code, adjusting the permission level ensures that users cannot bypass the hidden button by using direct URLs to edit the page.
Click the gear icon (Settings) in the top right corner of your SharePoint site and select 'Site permissions' or 'Site settings' > 'Site permissions'.
Select the checkbox next to the Members group (or the specific group you want to restrict), then click 'Edit User Permissions' in the ribbon.
Uncheck the 'Edit' or 'Contribute' permission levels, check the 'Read' permission level instead, and click 'OK' to apply the changes.

Consult Microsoft Q&A for Advanced On-Premises Customization
If you need to hide the button while retaining editing permissions for backend lists, you should seek guidance from the official Microsoft SharePoint server team.
Looking for a Lightweight Office Alternative?
While managing SharePoint Server permissions can be highly technical, creating and managing your daily documents doesn't have to be. WPS Office provides a free, fast, and feature-rich alternative to Microsoft Office, making it incredibly easy to work on your offline and local files without complex administrative overhead.
- 1. Download the Installer: Visit the official WPS website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
- 3. Open Your Office Files: Launch WPS Office and instantly open any existing Word, Excel, or PowerPoint documents with full formatting preserved.

Frequently Asked Questions
Can I hide the Edit button using CSS in SharePoint 2019?
Yes, administrators sometimes use custom CSS via a Script Editor web part to hide the `#pageEditAction` element. However, modifying permission levels is highly recommended as CSS only hides the button visually but does not revoke actual editing permissions.
What is the difference between Read and Contribute permissions?
Users with Read permissions can view pages and download documents but cannot edit content or see the Edit button. Contribute permissions allow users to view, add, update, and delete list items and documents.
Why can Members still edit the page after changing group permissions?
This usually happens if the specific page or the Site Pages library has unique permissions that break inheritance from the parent site. You must check the specific library settings and ensure it inherits permissions from the site, or manually update the permissions on that specific library.




