Friday 12 April 2013

Is "Sign in as different user" still in SharePoint 2013?


SharePoint 2010 "Sign in as Different User"
SharePoint 2010: Here it is 

SharePoint 2013 Where is "Sign in as Different User"?
SharePoint 2013: ....












The SharePoint team has, surely for some good reason decided that "Sign in as different user" should not be available to reach easily for users in SharePoint 2013. I've only been involved in SharePoint 2013 in a test and lab environment so far, but I'm already really annoyed by this.

Actually I've heard reasons for removing this possibility. One of the main reasons is that there has been reported many authentication problems with Microsoft Office Suite, or other external programs after logging in as a new user. Common problems were not being able to open files that you should have access to, saving  files as the wrong user etc. There could also be problems with some page content being what the windows authenticated, or old user logged in, being shown.

But for me as a IT Pro this is a missed feature. When configuring and testing SharePoint 2013 (or any other release for that matter), I need to be able to change between accounts often. I don't want to close down my browser for each user change, sit in several browsers or different virtual machines. I need this option and I'm prepared to face the consequences! (work around the problems)

Luckily the link is not completely removed in 2013, it's only hidden

These are the options I've found so far:


Alternative 1 - Simple solution - Simple modification of link

If you're out after a quick fix this is the way to go. It requires you to either have this link avaliable for copy/paste, or that you are better to remember stuff than me.

This is the link required: 
/_layouts/closeConnection.aspx?loginasanotheruser=true.
Paste it after your site, or site collection url and provoke a user change.

This is what I've preferred to do so far.

Alternative 2 - For test or dev environments - Modify an ASP.NET User Control File 15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx:

Within the 15 hive there's a ASP.NET User Control file which can be modified to get the missed link back right where it used to be. This would be a nice edition to test or development environments for seamless switching between users.

Alternative 3 - simple solution 2.0 - Runas different user

Alternative 3 is a Windows-interface workaround for the problem.

I've taken the liberty to write down recipes for new editions:


From Windows 7/Windows Server 2008.

Startmenu:

•Input the name of your browser
•CTRL + SHIFT right click
•Run as different user





















From Windows 8/Windows Server 2012.

From the "tile interface"/aka the new and less intuitive start menu.

  • Choose or search and find your browser of choice, 
  • Right click it 
  • "Run as different user" (you find it at the bottom of your screen)