Wednesday, 29 March 2017

Sign in as different user" option in SharePoint 2013

Step: 1
Go to the location C:\Program Files\Common Files\microsoft shared\Web ServerExtensions\15\TEMPLATE\CONTROLTEMPLATES.
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