I use SharePoint 2013 and I need to change my current user in my SharePoint site.
How can I change my current user?
How can I add sub menu (sign in as different user) to my menu ?
I use SharePoint 2013 and I need to change my current user in my SharePoint site.
How can I change my current user?
How can I add sub menu (sign in as different user) to my menu ?
Here is Microsoft solution: http://support.microsoft.com/kb/2752600
Basically, start the browser as a different user.
Another solution (but dirty) is to edit the Welcome.aspx file and add a control:
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser" Text="<%$Resources:wss,personalactions_loginasdifferentuser%>" Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>" MenuGroupId="100" Sequence="100" UseShortId="true" />
more here
There is a free tool from Pointbird that will give you this functionality, or you could just add a custom action that adds a link to "/_layouts/closeConnection.aspx?loginasanotheruser=true"
http://pointbird.com/products/pointbird-sign-in-as-different-user/
Create a bookmarklet that points to :
URL=javascript:window.location = _spPageContextInfo.webServerRelativeUrl.replace(/\/$/, "") + "/_layouts/closeConnection.aspx?loginasanotheruser=true"
As something you deploy to your browser, rather than your site, it approaches the problem from the other direction. But honestly, most of your users won't need this functionality - developers will.
Another advantage of this approach is the same bookmarklet will work in any SharePoint environment, including Office 365.
Your question is about multiple requirements:-
I need to change my current user in my SharePoint site.
How can I change my current user?
How can I add sub menu (sign in as different user) to my menu ?
So, here there are 3 solutions:-
1. Launch your web browser as another user
For IE --> Navigate to C:\Program Files (x86)\Internet Explorer and drag iexplore.exe to the desktop (creates a shortcut) --> Right click your new shortcut and select “Properties” --> Modify the shortcut target by adding runas and the desired user account to the beginning of the path. Change the target to (replace user@domain with your test acct):
%systemroot%\System32\runas.exe /user:user@domain "%ProgramFiles(x86)%\Internet Explorer\iexplore.exe"
Click OK to save changes.
2. Modify the welcome.aspx page in control templates (HIVE)
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.
3. Modify the SharePoint MasterPage via Designer or VS module
Open the master page --> Search for <div id="suiteBarButtons">
--> Scroll and paste the below code between the <SharePoint:FeatureMenuTemplate ....>
and </SharePoint:FeatureMenuTemplate>
tag --> Add the foll. code:
<SharePoint:MenuItemTemplate runat="server" id="MenuItem_SignInAsDifferentUser"
Text="SignIn As Different User"
Description="To log in as a different user"
MenuGroupId="200"
Sequence="250"
UseShortId="true"
ClientOnClickNavigateUrl="~siteLayouts/closeConnection.aspx?loginasanotheruser=true"
PermissionMode="All" />
This will add the 'sign is as another user' into the site actions dropdown.
Edit Welcome.aspx
file in this address :
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\
15\TEMPLATE\CONTROLTEMPLATES
And then after tag with Id ID_RequestAccess
most add this Tag :
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
Description=" <%$Resources:wss,
personalactions_loginasdifferentuserdescription%>"
MenuGroupId="100" Sequence="100" UseShortId="true" />
This is my source link. Sign in as different user in SharePoint 2013
Much like Derek Gusoff, I use a bookmarklet. Thought I would post it in the interest of added options.
javascript:(function(){ var curloc = document.location.href.split('_');var urlEnding= '_layouts/closeConnection.aspx?loginasanotheruser=true';curloc = curloc.splice(0,curloc.length-1).join('_')+urlEnding;document.location.href = curloc;})();