Custom “Sign in as a Different User” button in SharePoint

Whether you’re working in SharePoint 2007, 2010 or 2013, you may have a need to create a custom “Sign in as a Different User” button within your site design. On a recent project for a client, we were creating a Customer Portal that was external facing and were using a custom masterpage that included removal of the native SharePoint ‘Welcome’ menu, where the “Sign in as a Different User” is normally found – or in the case of SharePoint 2013, not found at all.

There’s a simple way to wire up your own custom element that will trigger the same behavior as the “Sign in as a Different User” menu option. In SharePoint 2007, just wire up the following function call to any element within your layout/page:


Meanwhile, in SharePoint 2010 or 2013, the function call is simply to a slightly different application page:


That’s it! Now you can create any button, image, hyperlink or other markup you want that, when clicked, will pop the “Sign in as a Different User” prompt, then redirect back to the current page.

Comments are closed.