My Visual Studio Team System (VSTS) environment is automatically connecting to Team Foundation Server (TFS) as another user. What’s going on?
The default behavior when you connect to TFS is to use Windows Authentication and therefore use your current identity when authenticating. If at some point, you connected to your TFS application tier via an Uniform Naming Convention (UNC) path, the operating system may have prompted you to specify credentials and gave you the option to store the password for that user.
If you did so and that user was not your default identity then the next time you connect to TFS using VSTS you will be automatically logged in as that user.
To revert it back to the default behavior of using your own identity you will need to remove that “cached” credential from the Windows Vault (Windows 7), which can be managed via the Credential Manager under Control Panel.