Friday, June 10, 2016

Site accessible only for Site Collection Administrator

One of the simple questions (seems to be simple at first) has been asked in SharePoint MSDN forum, "How to ensure that a site collection only can be accessible by "Site Collection Administrator".

While doing the brain storming analyse on this topic, my first stop was finding the solution through SharePoint Power Shell.

But lastly I found there is no such cmdlets for this scenario.

Here are the possible workaround for this,

Creating the feature event receiver that will check the currently logged in user belongs to Site collection administrator , if not set the "ReadLock" on the site collection.

This will help the site collection administrator for quick maintenance to be done on the site on peak hours.

Upon activating the feature, Site will be ready to check the currently logged in user is belongs to Site collection administrator or an end user.

On Deactivating lock will be removed for end user.

 public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            SPSite site = properties.Feature.Parent as SPSite;
            SPWeb web = site.OpenWeb();
            if (!web.CurrentUser.IsSiteAdmin)
            {
                site.ReadLocked = false;
             
            }
            else
            {
                site.ReadLocked = true;
            }
         
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
           //Remove the lock for all
         
        }

Approach : 2


   


Monday, May 23, 2016

WorflowServices SharePoint 2013 Service Pack 1 - Update

After you upgrade your SharePoint 2013 Enterprise to SP2013 Service Pack 1, you might have receive this error on your default site's home page or on powershell command.




  An exception of type System.TypeLoadException was thrown.Additional exception information:Method 'Upgrade' in type 'Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy' from assembly Microsoft.SharePoint.WorkflowServices,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c' does not have an implementation. To resolve this error, All you need is to download the update for KB2880963 from link KB 2880963 - Workflow Services related fix and Performance upgrade

Run SharePoint Products Configuration Wizard "As Administrator".

Happy Installing and Configuring the SharePoint.!

Monday, March 28, 2016

Synchronize the SharePoint document library

Now synchronizing the SharePoint document library in SharePoint 2013 is simplified as just like that.
Even there is an add-on (OneDrive for Business) for Chrome browser to do so.

Follow these steps to Synchronize the document library with your local folder.

Click the "Sync" button in the bar as shown in this image.







70-488 exam study guide

Here is my little part to help someone who wish to find the exam guide on 70-488.

70-488 Exam Guide - Developing SharePoint Server Core Solution

Apart from this ,
I have been forwarded the excel file , the classified and organised exam study guide  on 70-488 - Developing Microsoft SharePoint Server Core Solution.

SharePoint 2013 - Exam Guide on 70-488 - Developing SharePoint Server Core Solutions


And another one from renowned author and my all time favorite when its comes to exam preparation one and only "Becky Betram on Exam Gudie - 70-488.