SharePoint 2013 turn on switch account feature

Source: Internet
Author: User

sharepoint2013 Previous version, there is a replacement account function, to the sharepoint2013, then hide this feature, sometimes we debug things on the test machine, need to switch accounts, it becomes very troublesome, but there is always a solution to the problem, Here's how to restore the Tangent account feature on 2013

  1. Find the file path First: C:\Program files\common files\microsoft Shared\Web Server Extensions\15\template\controltemplates
  2. Open the Welcome.ascx file with the Notepad editor, where the color section is the code snippet you want to include.

    <%@ Register tagprefix= "SharePoint" namespace= "Microsoft.SharePoint.WebControls" assembly= "Microsoft.SharePoint , version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%> <%@ Register tagprefix=" Utilities " Namespace= "Microsoft.SharePoint.Utilities" assembly= "Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%> <%@ Import namespace=" Microsoft.SharePoint "%> <%@ Assembly Name=" Microsoft.Web.CommandUI, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%>

    <%@ Control language= "C #" inherits= "microsoft.sharepoint.webcontrols.welcome,microsoft.sharepoint,version= 15.0.0.0,culture=neutral,publickeytoken=71e9bce111e9429c "autoeventwireup=" false "compilationmode=" Always "%>

    <sharepoint:personalactions accesskey= "<% $Resources:wss,personalactions_menu_ak15%>" ToolTip= "<%$ Resources:wss,open_menu%> "runat=" Server "id=" Explicitlogout "menualignment=" right "visible=" false ">

    <CustomTemplate>

    <sharepoint:featuremenutemplate runat= "Server"

    Featurescope= "Site"

    location= "Microsoft.SharePoint.StandardMenu"

    Groupid= "Personalactions"

    Id= "Id_personalactionmenu"

    Useshortid= "true"

    >

    <sharepoint:menuitemtemplate runat= "Server" id= "Id_personalinformation"

    text= "<% $Resources:wss,personalactions_personalinformation%>"

    description= "<% $Resources:wss,personalactions_personalinformationdescription%>"

    menugroupid= "100"

    Sequence= "100"

    Imageurl= "/_layouts/15/images/menuprofile.gif?rev=23"

    Useshortid= "true"

    />

    <sharepoint:menuitemtemplate runat= "Server" id= "Id_requestaccess"

    text= "<% $Resources:wss,personalactions_requestaccess%>"

    description= "<% $Resources:wss,personalactions_requestaccessdescription%>"

    menugroupid= "100"

    Useshortid= "true"

    Sequence= "300"

    />

    <sharepoint:menuitemtemplate runat= "Server" id= "Id_logout"

    text= "<% $Resources:wss,personalactions_logout%>"

    description= "<% $Resources:wss,personalactions_logoutdescription%>"

    menugroupid= "100"

    Sequence= "400"

    Useshortid= "true"

    />

    <sharepoint:menuitemtemplate runat= "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= "200"

    Sequence= "100"

    Useshortid= "true"

    />

    <sharepoint:menuitemtemplate runat= "Server" id= "Id_switchview"

    Menugroupid= "200"

    Sequence= "200"

    Useshortid= "true"

    />

    <sharepoint:menuitemtemplate runat= "Server" id= "Msomenu_restoredefaults"

    text= "<% $Resources:wss,personalactions_restorepagedefaults%>"

    description= "<% $Resources:wss,personalactions_restorepagedefaultsdescription%>"

    Clientonclicknavigateurl= "JAVASCRIPT:SP. Sod.execute (' Browserscript ', ' Msowebpartpage_restorepagedefault ') "

    Menugroupid= "200"

    Sequence= "300"

    Useshortid= "true"

    />

    <sharepoint:menuitemtemplate runat= "Server" id= "Id_loginasdifferentuser "

    text= "<% $Resources:wss,personalactions_loginasdifferentuser%>"

    description= "<% $Resources: Wss,personalactions_loginasdifferentuserdescrip Tion%> "

    menugroupid= "100"

    Sequence= "100"

    Useshortid= "true"/>

    </SharePoint:FeatureMenuTemplate>

    </CustomTemplate>

    </SharePoint:PersonalActions>

    <sharepoint:applicationpagelink runat= "Server" id= "Explicitlogin"

    Applicationpagefilename= "Authenticate.aspx" appendcurrentpageurl=true

    text= "<% $Resources:wss,login_pagetitle%>" style= "Display:none" visible= "false"/>

    When you are finished editing, you can log off with "other users logged in".

SharePoint 2013 turn on switch account feature

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.