Change the owner of a work area in Team Foundation

0

Good afternoon everyone,

I have a project in VS2012 connected to a TFS. I downloaded the project in my premises with a user that has been unsubscribed and the work area associated with that user and project is defined as private (I did not realize to change it).

Now I have another user to connect to the TFS, but being the private workspace does not let me change / delete the assignment of the local project folder or the owner of that area, since they belong to the deleted user.

It is necessary that the solution provided does not imply the elimination of the sources or reinstallation of VS, since it is not viable.

Having said that, my questions are:

  • Is there a configuration file inside the team that indicates who is the owner of the work area and that I can edit?
  • If this is not possible, is there a command to do it from my local computer?

I have been researching on the Internet and all the solutions I have found require the previous user to exist.

Thank you.

    
asked by Miguel Martinez 21.12.2017 в 18:30
source

2 answers

0

At the corporate level (where users are not administrators or are not available to install software) there is another solution, which must be executed by a Team Foundation administrator, and is to execute one of the following commands:

To change the owner of the work area:

tf workspaces /updateUserName:OLD_USER /s:http://SERVER /login:NEW_USER

To delete the work area:

tf workspace /delete WORKSPACE;OLD_USER /server:http://SERVER /login:NEW_USER

If the new user (user indicated in /login ) does not have permission to launch it will return this error:

  

TF50309: The following account does not have enough permissions to   complete the operation: NEW_USER . The following permissions are   needed to perform this operation: View collection-level information.

To execute these commands would be from the TFS console on the server or from the VS console on a PC. The VS console is this, inside the Visual Studio 2012 installation folder (in my case):

I hope it will help you.

    
answered by 27.12.2017 / 11:40
source
1
  

It is necessary that the solution provided does not involve the elimination of sources or reinstallation of VS, since it is not viable.

It is possible using the program Team Foundation Sidekicks

    
answered by 21.12.2017 в 19:31