Thursday, March 7, 2013

Missing "Sign in as Different User" (SP2013)

As we all noticed a key feature(Sign in as Different User) was depreciated from SharePoint 2013.And I guess all the developer love to have this option back!.
And here is how you can get this option back.

Option 1: Update the webcome.ascx page from “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES” By adding below code in <CustomTemplate> section (watch out for Service Pack updates!, sometimes they over write your changes).
 
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser" Text=" <%$Resources:wss,personalactions_loginasdifferentuser%>" Description=" <%$Resources:wss,personalactions_loginasdifferentuserdescription%>" MenuGroupId="100" Sequence="100" UseShortId="true" /%> 

ð Result

 


Option 2: Bring up login screen (Authentication). I guess, this is much safer option.
http://<Web>or<Site>/_layouts/closeConnection.aspx?loginasanotheruser=true

ð Result