Change user of a workspace in TFS

Suppose you have a workspace made with a certain user and you want to move it to a different user. One of the reason could be, you started working with an account then your account changes for various reason, so you need to migrate all workspaces from your old user to another user. This can be accomplished by command line tool tf.exe

tf workspaces /updateUserName:OldUserName /s:sserverurl

this should be done with your new account, and will assign all workspaces from old account to current account. If you want to change only one workspace you can go with a developer command prompt to worspace folder, digit tf worksspace to open the UI to edit workspace settings, press advanced and then change the username from there.

image

Figure 1: Change workspace owner.

Simple and quick :)

Alk.