In SharePoint 2013 you may notice the missing of Sign in as a Different User in the user info menu, this option was helpful for developers for testing purposes or for technical issues helping other users.
There are many tips for solving this problem:
- You may first run as different user from the browser options by right click + Shift above the browser short cut.
- You may try to edit in the Welcome.ascx file to add the command to the user menu like below:
open ” C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx” using notepad, and add the following element before the existing “ID_RequestAccess” element:
<SharePoint:MenuItemTemplate runat=”server” ID=”ID_LoginAsDifferentUser”
MenuGroupId=”100″ Sequence=”100″ UseShortId=”true” />
You can now open your SharePoint site and see the result like below:
Another way is to write a custom Web Part and add a Link Button Control and write down the following code for redirecting to different user login:
Now after deploying the solution you can add the web part within your site’s default page