Automatically connect to TFS under another user account

by Ewald Hofman 21. May 2009 21:57

When you make a connection to TFS with the Team Explorer, it will try to connect with your current credentials to the TFS environment. There are two scenarios in which you want something else:

1) You current identity has no access to TFS and you are prompted for the credentials every time you make a connection to TFS

2) Your current identity has access to TFS, but you want to connect to TFS with other credentials.

You can achieve this by adding the credentials you want to use to create the connection to TFS to the "Stored users and passwords". Just add in there the address of you TFS server and the credentials. The next time you access TFS, those credentials will be used.

[UPDATE: September 9th, 2009]
In Windows 7, you can find the stored credentials under "Manage Windows Credentials".

Tags:

General

Comments

2/18/2010 7:15:31 PM #

Chris

This works for connecting to TFS - but the in the solution explorer the items are not "bound" to the source safe repository - to be clear I can check in/out all that good stuff from within the Source Control TFS plug in, but not from within the solution explorer itself - I have checked with the network guys and they show me it is attempting to use my local machine credentials when I try and access a file via the solution explorer.

I have been trying to resolve this for days with no luck - setting SSUSER and SSPWD environmental variables also DO NOT do the trick as it appears you can not specify a domain with those variables - any help would be greatly appreciated.

This again only related to windows 7.

Chris Canada | Reply

2/18/2010 7:27:34 PM #

Ewald Hofman

You are talking about Visual Source Safe. This is an end-of-life product.

This blog post is on Team Foundation Server, which is the better product for VSS: www.ewaldhofman.nl/.../...or-SourceSafe-users.aspx

Ewald Hofman Netherlands | Reply

5/3/2010 9:26:42 PM #

mrotoyou

Ewald:

Slightly different topic, but once you are in Visual Studio and connected to TFS, is there a way to show the user id that you are connected as to TFS?

This shouldn't be a big issue in doing day to day work, but in some testing situations (for example, testing security for custom groups) we have seen a need for this.

mrotoyou United States | Reply

5/3/2010 10:24:14 PM #

Ewald Hofman

Altough you can not see it somewhere prominent in the application, but there are 2 places where you can see it I can think of now:

1) Open the workspaces (File -> Source Control -> Workspaces). In there you see in the owner column who is logged in

2) Create a work item query with a filter on @Me. It then shows all work items assigned to the logged in user.

Ewald Hofman Netherlands | Reply

2/24/2010 3:06:12 PM #

Izdelava spletnih strani

Just wanted to tell you that your page is not showing up properly on the Opera.  Anyway, I have subscribed to your RSS feed. Smile

Izdelava spletnih strani Slovenia | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen

About the author

 

Ewald Hofman is MVP VS ALM and consultant at Avanade. His specialization is Application Lifecycle Management solutions based on Visual Studio ALM.

 

 

ClusterMap

Statistics

Statistics created at 09 Sep 2009

105 posts
130 comments
74 raters
128397 visit (351 per day)
19 users online

Recent comments

Comment RSS