This is the method which is used to enable “Sign-in as Different User” in the SharePoint login menu. You need to access the Application Server and proceed with the steps given below.
- Go to the location C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\TEMPLATE\CONTROLTEMPLATES.
- Here, we have a file named welcome.ascx.
- Open welcome.ascx in Visual Studio or in Notepad, add the code given below 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"/>
- Done
- Refresh the Browser.
Output