TFS User Management

In this post I will demonstrate one of my TFS Extension which I created while working for one of my client, I named it as “Manage TFS User”.

Before diving into technical details lets discuss the need of it. The Configuration Team has a requirement where they wanted to have a utility using which they can manage TFS users i.e, Adding/Removing users from TFS Groups during release processes. So I created a TFS Extension and a WindwsUtility to do the job.

In this post I will detail all about the TFS Extension and in next post I will detail about the Windows Utility.

Once the Extension is installed, it comes under Tools menus as displayed in below image.

1Image 1

When a user clicks on menu  “Manage TFS User”, the extension checks if the a TFS Server Name/URL has been set or not. If the extension is triggered for the first time, the below window pop’s up for TFS URL. Once set, the window will be closed and a new window will pop up as in image 3. The saved TFS URL can be reset manually also.

8Image 2

If a TFS URL has been previously set, then the extension will open as shown in the below image(Image 3).

2Image 3

As we can see in the below image (Image 4), the window is pre-populated with all the TFS User groups and their respective members. Using this window we can Add/Remove a user(s) to a TFS Group.

3Image 4

Using this tool a user can be removed individually or all users can be removed completely by using the Remove User(s) button.

In the same way, there are two ways to add a user:

  1. Right click on a Group name and click on Add User pop up button.
  2. Select the Group name and click the Add User(s) button

This will open a new Window using which we can add a user to the group.

3
Image 5

A user can be added by selecting a user(s) from the grid list or by entering a comma or semi-colon or a new line separated username(s) as seen in below image.

6Image 6

I hope this will help someone.

The source code for this application can be found on my github.

 

 

Advertisements