Nick Grattan’s SharePoint Blog

About Microsoft SharePoint and some .NET

Sign in as Different User and SharePoint 2013

with 25 comments

It’s been noted that the “Sign in as a Different User” menu command is missing in SharePoint 2013 (e.g., see http://dirkvandenberghe.com/2012/07/18/sharepoint-2013-login-as-a-different-user.html).

One suggestion for a fix can be found here: http://www.little.org/blog/2012/07/17/launch-your-web-browser-as-another-user/.

This “Sign in as Different User” menu item is very useful when testing applications, but it can lead to problems especially when opening documents, say in Microsoft Word. So, it may be for these reasons that the option has been removed in SharePoint 2013.

You can add the menu item back in, but I would suggest only doing this on test or development SharePoint servers. To do this, repeat this edit on all servers in your SharePoint farm:

  • Locate the file \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open in a text editor.
  • Add the following element before the existing element with the id of “ID_RequestAccess”:

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

  • Save the file.

Now, the menu item shall be displayed:

Written by Nick Grattan

July 23, 2012 at 4:24 pm

25 Responses

Subscribe to comments with RSS.

  1. Nice trick. Thanks Nick!

    Oliver Bartholdson

    July 23, 2012 at 8:31 pm

  2. [...] The “Sign in as a Different User” menu option has been done away with in SharePoint 2013.  Microsoft has made it known that they have worked to make SharePoint 2013 a more streamlined, efficient, out-of-the-box solution, and in doing so are discouraging users from customization.  However, some of the features that were removed still need to be navigated in some way.  The “Sign in as a Different User” command is one example.  Nick Grattan’s SharePoint Blog gives us a workaround in, “Sign in as Different User and SharePoint 2013.” [...]

  3. [...] out this post to get it added back:http://nickgrattan.wordpress.com/2012/07/23/sign-in-as-different-user-and-sharepoint-2013/Thanks Nick! Published Saturday, August 11, 2012 12:50 AM by cjg Filed under: sharepoint [...]

  4. [...] by adding the code below before the SharePoint:MenuItemTemplate tag with id ID_RequestAccess(http://nickgrattan.wordpress.com/2012/07/23/sign-in-as-different-user-and-sharepoint-2013/ )<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser" [...]

  5. [...] by adding the code below before the SharePoint:MenuItemTemplate tag with id ID_RequestAccess(http://nickgrattan.wordpress.com/2012/07/23/sign-in-as-different-user-and-sharepoint-2013/ )<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser" [...]

  6. [...] There is a post (actually a couple posts) that discuss this. In Nick’s he outlines a potential workaround http://nickgrattan.wordpress.com/2012/07/23/sign-in-as-different-user-and-sharepoint-2013/. [...]

  7. [...] pouvez trouver sur cette page une autre solution, qui est de modifier un « user control » par défaut de [...]

  8. [...] Sign in as Different User and SharePoint 2013 As you know, the very helpful option”Sign in as a Different User” is missing in SharePoint 2013 so that it’s pretty hard for you to work with multiple users on a test environment. Now you would like to have the option work on SharePoint 2013 ? You just need to read the great tip written by Nick Granttan. Follow him @NickGrattan [...]

  9. Hi Nick,

    Nice trick!

    Do you also know a way to bring it back on the access denied site?

    Thank you and best regards,
    Lucian

    Lucian

    December 7, 2012 at 2:20 pm

  10. [...] Sign in as Different User and SharePoint 2013 [...]

  11. [...] Grattan muestra en su ejemplo de como agregar esta opcion al menu, sin embargo es necesario mencionar que no es una buena practica (sin tomar en cuenta que no es [...]

  12. Just go to start->programs->IE and shift-right click and “run as different user”

    Kim

    December 13, 2012 at 6:51 pm

  13. I found a ready solution for sharepoint signin: support sign-in to facebook, microsot account, google account to sharepoint
    http://sharepoint-live-authentication.shetabtech.com/

    ali

    January 18, 2013 at 8:41 pm

  14. I’ve blogged about a solution that doesn’t require modifying the out of the box files. (Which is not recommended by Microsoft nor supported).

    http://corypeters.net/2012/10/sharepoint-2013-sign-in-as-another-user

    cbpeters

    February 1, 2013 at 9:48 pm

  15. [...] link back to Preview version? The steps to add the link back are mentioned by Nick Grattan in his blog [...]

  16. Hi,
    Instead of changing OOB sharepoint and launching IE with another user I’ve created a shortcut in my favorites and changed the URL to this :

    javascript:window.location.href=”http://”+window.location.host+”/_layouts/closeConnection.aspx?loginasanotheruser=true”;

    Usage : navigate to your site e.g http://intranet and click on the shortcut. This will redirect you to http://intranet/_layouts/closeConnection.aspx?loginasanotheruser=true and asking you to sign in as a different user.

    Samuel Levesque

    February 28, 2013 at 8:05 pm

  17. Reblogged this on Pornjed's Blog.

    pornjeds

    March 7, 2013 at 6:41 am

  18. […] Die fehlende Option wieder ins Menü eintragen Nick Grattan hat in seinem Blog eine Methode beschrieben um die fehlende Option wieder im Menü einzutragen. Allerdings bearbeitet […]

  19. Nice tips but what about with this feature and app model ? It seems to delete only the cookie of the web domain and not the app domain. Have you tested also this case?

    Marco

    June 7, 2013 at 5:21 pm

  20. Not having this feature won’t affect users, cache and permission issues will be less due to this. This will only create problem for an IT professional while troubleshooting on a user’s desk.

    Brody Blackwell

    June 12, 2013 at 11:08 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 38 other followers

%d bloggers like this: