locked
CHANGE USER WHEN I CONNECT TO TEAM FOUNDATION SERVER RRS feed

  • Question

  • I USE TEAM EXPLORER TO CONECT TO TEAM FOUNDATION SERVER 2010,

    BUT I DO NOT LOGIN OUT, AND CONNECT WITH OTHER LOGIN,

    when I use team foundation server preview I login out and connect with other user

    • Edited by neonash Monday, October 22, 2012 3:07 AM
    Monday, October 22, 2012 3:07 AM

Answers

  • Hi,

    When you connect to TFS using Team explorer, it will automatically use your currently logged-on user account from Windows Sign-on services and check if you are able to login to selected TFS Server. If you are not (which is the case for TFSPreview server) then it will present you with necessary login dialog box for you to sign-in.

    If your requirement is to login with another account via Team Explorer then you will have to start Team Explorer (Visual Studio) with that other account. To do that, you will have to follow steps as per below…

    • Open a command prompt and type in …
    • Runas /user:[domain]\[UserID] cmd
    • “Runas” command will ask for password for this user ID.
    • On successful log-in it will open-up another command window where you have logged-in as the specified different user account.
    • Then go to Visual Studio installation directory which in my case is “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE”.
    • Then run devenv.exe file which will open-up a new instance of Visual Studio under that different user account.
    • Now you can connect to TFS via Team Explorer window from within this new instance which will utilize that different user account.

    So, because your corporate domain is not linked-up with TFS Preview hosting infrastructure, your current login userID and password  is not utilized for authentication and instead it asks users to punch in new one.

    Overall, I hope this answers your question and if it does then please mark this reply as answer.

    Best Regards,
    Dharmesh Shah.

    Wanted to automatically generate release notes from TFS ... Why not look at  http://tfschangelog.codeplex.com

    • Proposed as answer by TejasJ Monday, October 22, 2012 11:23 AM
    • Marked as answer by John QiaoModerator Thursday, October 25, 2012 8:16 AM
    Monday, October 22, 2012 7:46 AM

All replies

  • Hi,

    When you connect to TFS using Team explorer, it will automatically use your currently logged-on user account from Windows Sign-on services and check if you are able to login to selected TFS Server. If you are not (which is the case for TFSPreview server) then it will present you with necessary login dialog box for you to sign-in.

    If your requirement is to login with another account via Team Explorer then you will have to start Team Explorer (Visual Studio) with that other account. To do that, you will have to follow steps as per below…

    • Open a command prompt and type in …
    • Runas /user:[domain]\[UserID] cmd
    • “Runas” command will ask for password for this user ID.
    • On successful log-in it will open-up another command window where you have logged-in as the specified different user account.
    • Then go to Visual Studio installation directory which in my case is “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE”.
    • Then run devenv.exe file which will open-up a new instance of Visual Studio under that different user account.
    • Now you can connect to TFS via Team Explorer window from within this new instance which will utilize that different user account.

    So, because your corporate domain is not linked-up with TFS Preview hosting infrastructure, your current login userID and password  is not utilized for authentication and instead it asks users to punch in new one.

    Overall, I hope this answers your question and if it does then please mark this reply as answer.

    Best Regards,
    Dharmesh Shah.

    Wanted to automatically generate release notes from TFS ... Why not look at  http://tfschangelog.codeplex.com

    • Proposed as answer by TejasJ Monday, October 22, 2012 11:23 AM
    • Marked as answer by John QiaoModerator Thursday, October 25, 2012 8:16 AM
    Monday, October 22, 2012 7:46 AM
  • Or you can use the context menu:

    See: http://support.microsoft.com/kb/305780

    Regards,

    Tejas Joshi.

    • Proposed as answer by TejasJ Monday, October 22, 2012 11:23 AM
    Monday, October 22, 2012 11:22 AM
  • This is really annoying!

    I have a TFS instance set up in a VM using a trial license for testing.  The VM is not connected to our domain, so only local users on the virtual machine can connect to it.

    When I first try to connect from the host machine, my domain account does not have permission to access TFS, so it prompts me for credentials.  But, because there is no way to tell Team Explorer to connect as another user, now that user is the only user I can connect as.  Using Run As is useless, because the host machine doesn't know anything about the account I want to connect as.

    Deleting the server from Team Explorer doesn't help.

    Friday, April 26, 2013 11:56 AM
  • 'Run As' option available in context menu when you use it with 'Shift' key.
    Monday, May 20, 2013 4:58 AM
  • These will surely work for windows 8.

    i) Go to control --> User Accounts --> Credential Manager --> Windows Credentials --> General Credentials .. And edit with your username and password.

    Now Open Visual Studio . It will ask for username and password again. And finally it works.

    • Proposed as answer by ml_veloso Monday, October 26, 2015 6:45 PM
    Wednesday, January 29, 2014 9:37 AM
  • These will surely work for windows 8.

    i) Go to control --> User Accounts --> Credential Manager --> Windows Credentials --> General Credentials .. And edit with your username and password.

    Now Open Visual Studio . It will ask for username and password again. And finally it works.

    Yes, this works fine. Thank you very much.

    Tuesday, January 19, 2016 3:52 PM
  • I have a teammate who just installed VS 2013 today. After the install I had him try to connect to TFS and it doesn't even ask for credentials, it just gives him an error about not having permissions. I double checked and he is in the same group(s) I am. He is able to connect to the web portal. We tried the credential manager, but there was nothing there for the TFS app server. We added one for it and that still didn't work. Any other ideas?

     Thanks in advance,

      Nick Laws

    Tuesday, March 1, 2016 11:01 PM