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?
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.
Try:
stsadm -o setsitelock -url http://server_name -lock noaccess
That will help you set the site collection to read-only
Its very simple:
Central Administration > Application Management > Site Collection Quotas and Locks. Then choose 'Read Only'.
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.
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();
© 2022 - 2024 — McMap. All rights reserved.
readonly
(i.e.stsadm -o setsitelock -url http://server_name -lock readonly
) – Klenk