Sharepoint Europe Blog Post

How to Disable the Button From the Ribbon Workspace Synchronization With SharePoint 2010

14 May 2012 by Giuseppe Marchi, MVP

In most lists or document library in SharePoint 2010, you can use a button from the Ribbon bar to enable synchronization of the contents of that list or document library using SharePoint Workspace. This option, however we can also turn off, getting inside the page the settings of our list, and following this path operations: List Settings => General Settings => Advanced Settings and setting the "Office Client Availability" to "NO." Like anything, we can choose that setting when using the object model or via Powershell. In this case, we need to enhance the property "ExcludeFromOfflineClient" class "SPList" on the list or document library that we do not want to sync to our users through Workspace. The Code is very simple:

Sync To Workspace Share Point Ribbon


using
(SPSite site = new SPSite ( "WEBSITE URL" ))
{ using (SPWeb web = site.OpenWeb ()) { SPList list = web.Lists.TryGetList ( "NAME LIST" ); list.ExcludeFromOfflineClient = true ; / / so I disabled the sync



list.Update ();
}
}

 

I think that's one thing to know when you know that users using the applications they use every day of your SharePoint Workspace to manage their own content. 

 

Check out Giuseppe Marchi blog to read more interesting articles.

Stay tuned for more SharePoint content by joining our community or by following us on twitter or facebook.

0 comment(s) for “How to Disable the Button From the Ribbon Workspace Synchronization With SharePoint 2010”

    Leave comment: