Friday, October 16, 2015

Enabling “Sign in as a different user” option in SharePoint 2013

By default SharePoint 2013 doesn’t provide option for sign in as a different user unlike we had option in SharePoint 2010 ribbon.





Microsoft has removed this option in SharePoint 2013 because of Caching problems, Documents opened in external applications are saved with an unexpected user account and many more.
In order to enable this option we need to follow below steps:
Step 1: Go to 
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATES\CONTROLTEMPLEATS.

Here we have a file named welcome.ascx.





Step: 2
Open welcome.ascx in Visual Studio or in Notepad and add the following code and save:
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
  Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
  Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
  MenuGroupId="100"
  Sequence="100"
  UseShortId="true"
  />




And it should be above the tag which has ID_RequestAcess.
Step: 3
Refresh the site, and it's been enabled:

No comments:

Post a Comment