SharePoint 2007 site Collection Lock RRS feed

  • Question

  • Hi Guys,

    when i lock site collection using stsadm/centraladmin,what are the features & content types is Disabled in share point 2007.if anybody knows please post here actually what's going on when site collection is Locked.

    Thanks In Advance


    • Moved by Mike Walsh FIN Friday, March 11, 2011 11:14 AM questions about stsadm are never programming questions (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    • Changed type Muralikrishna T Friday, March 11, 2011 11:48 AM
    Friday, March 11, 2011 10:00 AM

All replies

  • You can find this answer via the SharePoint TechNet literature, specifically on this link here: -


    Any of the following values can be used with the lock flag:

    • None : Sets the site collection to unlock.

    • Noadditions : Permits changes that reduce the size of the data.

      For example, if you had an announcement list item whose body consisted of 50 characters, you could successfully edit the list item so that the body was reduced to 25 characters. However, if you tried to edit the list item so that they body was increased to 100 characters, that would be blocked.

    • Readonly : Sets the site collection to read-only.

    • Noaccess : Sets the site collection unavailable to all users.

    Friday, March 11, 2011 12:16 PM
  • hi Steven,

    ok i saw link your its good maintaining the backup adn resotre when unlock site collection,

    but thing when site collection is lock we will not get any more options in Site Actions,no adding items option(like there is no new button etc.).

    so how there are doing that like there deactivateing  features/content Types.

    pelase let me know any idea.

    Thanks In Advance.



    Friday, March 11, 2011 12:55 PM
  • Maybe I'm missing the question?  Are you asking if features/content types can be turned on/off?  I'd imagine the above aspects still apply.  Activiating/deactivating a content type or feature shouldn't have any real impact on its content or size (unless its something like the publishing features). 

    Only administrators will be able to edit/activate features like this anyhow.  If that's a concern, even if the lock is in place, you could always demote them.

    Friday, March 11, 2011 1:04 PM
  • ok,

    but how the entire siteCollection going hiding the new buttons,upload images & documents here i think there doing some background work is it right.so how we sholud know that.


    Friday, March 11, 2011 1:08 PM
  • Hi Guys,

    As per my analysation on above query, i Found follwing Infromation:when site collection is locked then internally.

          1) Conetent Data Base Table Name 'Sites'

          2) Column Name 'BitFlag' Value  changed based user Selection(like None,noadditions,Readonly,NoAcesses).     

    if you want to know those values,please go thorugh this link. 


    Example:When Administrator is selected 'ReadOnly' for lock a site collection.

    Now first it will change database column value and in site collection level some modifications like

    1) under site action no Editpage,ceatesite links it showing only View Allsite Content.

    2)All lists/libraries don't have toolbar(like new,actions,settings buttons).

    can any body help me for under standing how the above 2 points  going on share point 2007,when site collection is lock.

    Thanks In Advance.

     Murali Krishna.T

    Friday, March 18, 2011 10:54 AM
  • I'm not fully understanding what your issue actually is.  You've got the info about what the lock does.  If it's set accordingly, people will still see the normal permission defined options (add, upload, edit etc), but upon trying to save SharePoint will tell them the site is locked.

    If you want to hide all indications or references to editing potential, drop everyone into a read only group.  Security trimming isn't sensitive to the lock status of a site collection as far as I know.

    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Friday, March 18, 2011 11:16 AM
  • Hi Steven,

    Actullay my Requirment is,I need to implement lock functionality to Web level(not using database i will use web properties).

    for this requirment i want to know how microsoft doing bellow things. if i know those i will implement my own code for web lock.

    1) under site action no Editpage,ceatesite links it showing only View Allsite Content.

    2)All lists/libraries don't have toolbar(like new,actions,settings buttons).

    Please help me above senario.

    Thanks in advance.


    Friday, March 18, 2011 12:39 PM