views:

14

answers:

1

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?

A: 

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();
Rfvgyhn

related questions