Making SP O365 Site collection Read Only

Hi All,

In On-Premise SharePoint version, we do have an option of Site Quota and Locks using which we can make a site collection Read Only.

This can be very useful in the scenario of migration of a site as well.

However with O365 version of SharePoint, we do not have the direct way of making a site collection Read Only, but we do have an alternate approach that includes Creating a Read Only policy, and then applying that policy.

Sharing the same below:

  1. Browse to the site collection that you want to make Read Only
  2. Go to Site Settings -> Site Collection Administration -> Site Policies

1

3. On the Site Policy page, hit Create link

4. Give your policy a Name, Description (Optional), Select the following options:

  • Do not close or delete site automatically
  • Check the option – The site collection will be read only when it is closed
  • Hit OK and the policy will be created.

2

5. This will create a Read only policy that will be applied when the site is closed (temporarily closed).

6. Next step is to close the site after which the Read Only policy will be automatically applied.

7. Go to Site Settings -> Site Administration -> Site closure and Deletion -> Hit Close this site now.

3

8. Once the site is closed, you will see a site Read Only banner (in pink) on top of the site.

4

9. If users browse the site, it will be Read Only. Site Admins can go and re-open the closed site and it will be again available for users to add and update.

Also, there is an option in O365 using PowerShell to set the site collection with No Access to anyone. This may be used to temporarily lock down the site with No Access.

The following PowerShell commands may be used for the same.

5

PS C:\work\CSOM-EnableFeature> Set-SPOSite https://abc.sharepoint.com/
sites/TestSiteTemplate -LockState NoAccess
PS C:\work\CSOM-EnableFeature> Set-SPOSite https://abc.sharepoint.com/
sites/TestSiteTemplate -LockState Unlock
PS C:\work\CSOM-EnableFeature>

Advertisements