SharePoint 2013 Settings "Log on as a different user"

Source: Internet
Author: User

Log in to the WEB server and open the C:\Program Files\Common Files\Microsoft Shared\Web server Extensions\15\template\controltemplates The "welcome.ascx" file under the directory, add the following code:

<sharepoint:menuitemtemplaterunat= "Server"ID= "Id_loginasdifferentuser"Text= "<% $Resources:wss,personalactions_loginasdifferentuser%>"Description= "<% $Resources:wss,personalactions_loginasdifferentuserdescription%>"Menugroupid= "+"Sequence= "+"Useshortid= "true"                 />

The entire file code is as follows:

<%@ RegisterTagprefix= "SharePoint"Namespace= "Microsoft.SharePoint.WebControls"Assembly= "Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c" %> <%@ RegisterTagprefix= "Utilities"Namespace= "Microsoft.SharePoint.Utilities"Assembly= "Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c" %> <%@ ImportNamespace= "Microsoft.SharePoint" %> <%@ AssemblyName= "Microsoft.Web.CommandUI, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c" %><%@ ControlLanguage= "C #"Inherits= "Microsoft.sharepoint.webcontrols.welcome,microsoft.sharepoint,version=15.0.0.0,culture=neutral, publickeytoken=71e9bce111e9429c "AutoEventWireup= "false"CompilationMode= "Always" %>  <sharepoint:personalactionsaccesskey= "<% $Resources:wss,personalactions_menu_ak15%>"ToolTip= "<% $Resources:wss,open_menu%>"runat= "Server"ID= "Explicitlogout"menualignment= "Right"Visible= "false">    <customtemplate>     <sharepoint:featuremenutemplaterunat= "Server"Featurescope= "Site" Location= "Microsoft.SharePoint.StandardMenu"GroupId= "Personalactions"ID= "Id_personalactionmenu"Useshortid= "true"         >         <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_personalinformation"Text= "<% $Resources:wss,personalactions_personalinformation%>"Description= "<% $Resources:wss,personalactions_personalinformationdescription%>"Menugroupid= "+"Sequence= "+"IMAGEURL= "/_layouts/15/images/menuprofile.gif?rev=23"Useshortid= "true"                 />         <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_requestaccess"Text= "<% $Resources:wss,personalactions_requestaccess%>"Description= "<% $Resources:wss,personalactions_requestaccessdescription%>"Menugroupid= "+"Useshortid= "true"Sequence= "+"                 />        <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_loginasdifferentuser"Text= "<% $Resources:wss,personalactions_loginasdifferentuser%>"Description= "<% $Resources:wss,personalactions_loginasdifferentuserdescription%>"Menugroupid= "+"Sequence= "+"Useshortid= "true"                 />         <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_logout"Text= "<% $Resources:wss,personalactions_logout%>"Description= "<% $Resources:wss,personalactions_logoutdescription%>"Menugroupid= "+"Sequence= "The "Useshortid= "true"                 />         <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_personalizepage"Text= "<% $Resources:wss,personalactions_personalizepage%>"Description= "<% $Resources:wss,personalactions_personalizepagedescription%>"IMAGEURL= "/_layouts/15/images/menupersonalize.gif?rev=23"Clientonclickscript= "Javascript:changelayoutmode (true);"permissionsstring= "Adddelprivatewebparts,updatepersonalwebparts"Permissionmode= "any"Menugroupid= "$"Sequence= "+"Useshortid= "true"                 />         <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_switchview"Menugroupid= "$"Sequence= "$"Useshortid= "true"                 />         <sharepoint:menuitemtemplaterunat= "Server"ID= "Msomenu_restoredefaults"Text= "<% $Resources:wss,personalactions_restorepagedefaults%>"Description= "<% $Resources:wss,personalactions_restorepagedefaultsdescription%>"Clientonclicknavigateurl= "JAVASCRIPT:SP." Sod.execute (' Browserscript ', ' Msowebpartpage_restorepagedefault ') "Menugroupid= "$"Sequence= "+"Useshortid= "true"                 />     </sharepoint:featuremenutemplate>    </customtemplate></sharepoint:personalactions><Sharepoint:applicationpagelinkrunat= "Server"ID= "Explicitlogin"Applicationpagefilename= "Authenticate.aspx"Appendcurrentpageurl=trueText= "<% $Resources:wss,login_pagetitle%>"style= "Display:none"Visible= "false" />

Pre-set Effect:

Post-Set Effect:

SharePoint 2013 Settings "Log on as a different user"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.