Making a sharepoint site (2007) read only
Asked Answered
T

4

5

I am getting ready to perform a migration of SharePoint 2007 to 2010, and during the migration horus, i will want to prevent anyone form adding content anywhere, but yet I would like for people to read the content. Is there a way to make the sharepoint 2007 site read only?

Tenia answered 13/6, 2010 at 5:35 Comment(0)
N
3

If you are performing a database attach upgrade, you could set the databases to read-only through SQL Management Studio. When SharePoint databases are set to read-only, SharePoint will automatically security-trim all sites in those databases to only allow for viewing the content.

Noose answered 9/2, 2011 at 22:13 Comment(0)
H
5

Try:

   stsadm -o setsitelock -url http://server_name -lock noaccess 

That will help you set the site collection to read-only

Hoehne answered 4/3, 2011 at 20:0 Comment(1)
That command will actually stop ALL access to the site. To make it properly read-only, change the last parameter to readonly (i.e. stsadm -o setsitelock -url http://server_name -lock readonly)Klenk
B
4

Its very simple:

Central Administration > Application Management > Site Collection Quotas and Locks. Then choose 'Read Only'.

Bulkhead answered 26/7, 2016 at 15:20 Comment(0)
N
3

If you are performing a database attach upgrade, you could set the databases to read-only through SQL Management Studio. When SharePoint databases are set to read-only, SharePoint will automatically security-trim all sites in those databases to only allow for viewing the content.

Noose answered 9/2, 2011 at 22:13 Comment(0)
A
2

I'm not sure if there is a way to do it in the UI or through stsadm, but there is a readonly property of the SPSiteAdministration object.

SPSiteAdministration siteAdmin = new SPSiteAdministration(siteUrl/guid);
siteAdmin.ReadOnly = true;
siteAdmin.Dispose();
Agrobiology answered 13/6, 2010 at 6:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.