Tuesday, February 4, 2014

Enable Sign in as Different User Option in SharePoint 2013

In SharePoint 2013 Microsoft removed "Sign in as different user" option from the welcome menu. In this article we will discuss how we can customize welcome.ascx and bringing back the login as a different user option.

I found that by default in SharePoint 2013, there is no option for "Sign in as different user". If you compare SharePoint 2010 and SharePoint 2013, it appears like below:

There are 3 ways of doing this:

  1.  Just add the following to the url: /_layouts/closeConnection.aspx?loginasanotheruser=true.
  2. Start your browser as another user 
  3. For enabling this option need to follow below steps:

Go to the Path Location:

C:\Program Files\Common Files\Microsoft shared\Webserver Extensions\15\TEMPLATE\CONTROLTEMPLATES

Here you will find a file named "welcome.ascx".

Open the welcome.ascx file and add the below code, below to <SharePoint:MenuItemTemplate runat="server   id="ID_PersonalInformation" tag:

<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
  Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
  Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
  MenuGroupId="100"
  Sequence="100"
  UseShortId="true"
  />

After this Save this, the option will appear like below:


No comments:

Post a Comment