Поделиться через


Logging in as a different user in SharePoint 2013 Preview

When you start to play with SharePoint 2013 preview you will soon find that our good ol' 'Sign in as a different user' is gone:

Not sure why they have removed it. As there are some issues with this (even in 2010), I think it might be done because of that, but for most people this will be missed.
Luckily this is only a cosmetic change, as the plumbing is still there.

There are three ways of doing this:

  1. Just add the following to the url: /_layouts/closeConnection.aspx?loginasanotheruser=true

  2. Start your browser as another user

  3. Hack welcome.ascx by adding the code below before the SharePoint:MenuItemTemplate tag with id ID_RequestAccess
    (https://nickgrattan.wordpress.com/2012/07/23/sign-in-as-different-user-and-sharepoint-2013/ )

    <SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
    Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
    Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
    MenuGroupId="100"
    Sequence="100"
    UseShortId="true"
    />

Obviously modifying control templates is not something we should be doing once the product goes RTM. Lets hope product group decides to put everything back where it belongs J

Comments

  • Anonymous
    January 01, 2003
    That's cool..Thanks for sharing.. a lot changes in SP2013

  • Anonymous
    February 14, 2013
    Don't forget the JavaScript bookmarklet approach :) corypeters.net/.../sharepoint-2013-sign-in-as-another-user

  • Anonymous
    December 17, 2013
    Very nice.

  • Anonymous
    January 31, 2014
    Very good now can login as different user. Thanks !