Thursday, October 4, 2012

Sign in as different user in SharePoint 2013 preview?

I know who started working on SharePoint 2013 preview edition should discuss about this at least once. Smile Yes the link is missing. Very frustrated isn’t it? When I am trying to login to the site if I don’t have access it simply says "Sorry, the site is not shared with you." How crap is that? If it says that then it should give me option to change my authentication. OK. Now, what is the fix?

We know there is sign in as different user link in SharePoint 2010. Let’s try it out in our browser. http://sp15/_layouts/closeConnection.aspx?loginasanotheruser=true. Yes, it’s worked. OK, is there any other way to fix this to add back the link to navigation?

Yes, we have to modify a layouts file, nothing but welcome.ascx found in the path C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES.

Add the below code in the welcome.ascx file in whatever place you like [what order you want to show the links.]
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser" Text="<%$Resources:wss,personalactions_loginasdifferentuser%>" Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>" MenuGroupId="100" Sequence="100" UseShortId="true" />

I have added it as shown below.


Save the file and refresh your site and you should see the new link added to your user menu.


I believe, Microsoft is hearing us and they should add the link back.

No comments:

Post a Comment