How to make SharePoint site collection read only and restrict delete?
Check out Best Alternative to InfoPath -> Try Now
This SharePoint tutorial, we will discuss, how to make SharePoint site collection read-only and restrict delete. By following the same approach, we can make the site collection read-only and restrict delete in SharePoint 2013/2016.
You can apply locks to a site collection to prevent users from updating content or you can temporarily prevent users from accessing the SharePoint site collection.
SharePoint 2016 Tutorial Contents
- Make SharePoint site collection read-only and restrict delete
- Make a site collection read only in SharePoint
Follow the below steps to make SharePoint site collection read-only and restrict delete.
Open SharePoint 2013/2016 central administrator and click on Application Management. Then Click on “Configure quotas and locks“, a new wizard will be open here.
Select Lock option like below and click on OK.
Then Open SQL Management studio and connect DB Engine.
Find out the Database name of the site, Central Administration > Application management > View Site collection and select one site.
Set SharePoint Content Database in Read-Only Mode, SQL Server Management Studio. Right-click on the database -> Options -> Make database read only -> True.
Now the SharePoint site will show read-only like below.
Now, let us see few other approaches to make a SharePoint site collection read-only.
To make a site collection read-only means we are preventing users from adding, updating, or deleting content in the site collection.
You can also make a site collection as Adding content prevented, which means to prevent users from adding new content, also we can make site collection as “No Access” which means to prevent users from accessing the site collection and its content.
We can make a site collection read only by using SharePoint Central Administration, By using PowerShell and by using Server-side object model.
Open SharePoint Central Administration then selects Application Management.
From the Application Management screen click on Configure quotas and locks from Site Collection section.
This will open the Site Collection Quotas and Locks screen, Select the Read-Only radio button under the Lock status for this site: section. And then click on OK.
First, open SharePoint Management Shell, make sure you are opening in Administrator mode.
Syntax: Set-SPSite -Identity "<SiteCollection>" -LockState "<State>" Example: Set-SPSite -Identity "http://SiteCollectionURL" -LockState "ReadOnly"
Below is the SharePoint server object model code to make site collection read-only.
SPSite site = new SPSite("http://SiteCollectionURL"); site.ReadOnly = true;
You may like following SharePoint tutorials:
- Change site collection title, description, logo, and site collection administrator in SharePoint
- How to Set Permissions in SharePoint Online/2013/2016 Site
- Self-Service Site Collection in SharePoint 2013/2016
- Confirm SharePoint 2013 Web site in use
- Create Site Collection and Subsite in SharePoint Online using PowerShell
- Delete and Restore Site Collection using PowerShell in SharePoint Online Office 365
- How to make SharePoint 2016 site read-only?
- SharePoint 2016 Fast Site Collection Creation using PowerShell
- How to change logo in SharePoint Site?
- How to Change Site Collection Administrators in SharePoint
- Enable blank site template SharePoint 2013/2016/2019
- SharePoint 2019/2016/2013: Create a web application and a Site Collection using PowerShell
- Backup and Restore Site collection in SharePoint 2016/2013/2010/2007
This is how we can make SharePoint 2013/2016 site collection read-only and restrict delete.
Tags: sharepoint 2013 make site read-only, sharepoint 2013 make site collection read-only, how to make a sharepoint site read only, sharepoint 2016 make site read only
Download SharePoint Online Tutorial PDF FREE!
Get update on Webinars, video tutorials, training courses etc.