locked
How to make sub sites in SharePoint 2010 as Read Only RRS feed

  • Question

  • Hello,

    We have a requirement to make sub site as read only in SharePoint 2010 programmatically.

    How we can achieve it using Server Object Model ?

    Thanks,

    Hatim

    Wednesday, December 24, 2014 6:53 AM

Answers

All replies

  • Hi,

    Please check the links below.This should help you

    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/b0997d24-3952-480e-ae30-e8794bcab225/how-to-set-my-subsite-to-read-only

    https://social.technet.microsoft.com/Forums/en-US/633fca2b-1848-4f27-a333-5bf02490c1f8/making-a-subsite-readonly-in-sharepoint-affects-other-subsites-in-the-site-collection?forum=sharepointadminprevious


    Please remember to click 'Mark as Answer' on the answer if it helps you

    Wednesday, December 24, 2014 7:06 AM
  • Hi Hatim,

    Create group which will have Read only permissions (or you user Site Visitors group).

    Add your user to the same group.

    Thanks,

    Vivek

    Please vote or mark your question answered, if my reply helps you

    Wednesday, December 24, 2014 7:07 AM
  • Why dont to break inheritance of the subsite and give just read permission to everyone.

    http://itfreesupport.com/2014/12/break-permission-inheritance-with-sharepoint-2010-2013-and-online/


    If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/

    Wednesday, December 24, 2014 7:08 AM
  • Thank you for the reply.

    This workaround will work out by assigning read permission to all my sub site users.

    But I need to know is there a way we can make a sub site read only so whenever we need to make it editable we can switch back the way we can do it for Site Collection.

    Wednesday, December 24, 2014 8:51 AM
    • Marked as answer by Patrick_Liang Monday, January 5, 2015 8:32 AM
    Thursday, December 25, 2014 10:07 AM