TFS Tools and Utilities – Part I : User Permissions
Posted by Sameer Dhoot under Team Foundation Server (TFS)
TFS though a good product lack a lot of administration UI. Typically this is not a characteristic of a Microsoft product. When I first installed and started using TFS I went around searching for any administration console on the server which is more common for a Microsoft product but could not find one. Then I thought maybe there is web based administration service again no luck.
So basically what we have is Team Client which is the administration tool for managing TFS. Even this tool does not covers all the administration task. So administering TFS is pain for administrators. But after searching on Google I came across several good tools which can be used to make an administrators job easy. CodePlex is a good place to lookup tools for any Microsoft related technology.
TFS has three layers (Core TFS Service, SharePoint and Reporting), if TFS is only used as Source Control then you are only using Core services. But if TFS is actively used as a tool assisting the process automation then probably you might end up using all three layers. So administrators are responsible to manage all these three layers independently. There is no one console which can manage all these layers. Also you need to have knowledge and expertise on the technologies such as SharePoint and SQL Reporting Services.
Now if we have to add a new user to TFS then he has to have rights on all three layers. Using Team explorer you can only setup user permission on Core Services and not on SharePoint, Reporting Services. You need to setup permissions for the same user on respective layers using different consoles. You also need to know how the security is implemented for each of these layers and what level of right you need to grant to user. This seems to be a daunting task isn't it?
I came across a small tool which will make thing easy for you and you can manage these layers from this single console. The utility is called Team Foundation Server Administration Tool which is CodePlex project and can be downloaded from here.
Installation is no-brainer. Following is how can the tool be used
- Start the tool from start menu
- Once the tool is loaded, it will ask you to select the server (The server list is populated if you have already setup TFS connectivity using Team Explorer)
- Select the server and click on "OK"
- The screen below show list of all project from the server which you selected
- Select the project and click on "Select"
- After you select the project, the screen will load information for users having access to the project on all three layers of TFS
- To add new user go to the bottom of the list and enter the new user name next to the folder icon in yellow (highlighted in the image)
- After entering the user name select the role user is having in TFS, based on his role in TFS, roles are automatically selected for other two layers (SharePoint and Reporting)
- There are four role for TFS which are self explanatory. This is not the right place to discuss about what does these roles do. You can refer the TFS guide or help.
- If you have setup custom groups in TFS and other layers you can map the same in this tool using and XML file which is located at "C:\Program Files\Power Toys for Visual Studio\TFS Administration Tool\RoleConfig.xml" (this is the default installation location, adjust as per you installation)
- Image below shows various roles available for user on SharePoint layer of TFS
- After selecting role for TFS as "Contributors", the default role for SharePoint is mapped as "Contributor" and "Web Designer" this can be changed as per the requirement or in fact if you want, remove all the check marks and he will not be granted access to SharePoint.
- Logically these mapping of roles between layers is well thought of and would not require changes in most cases
- Image below shows the various roles available for Reporting Services Layer which as said above can be adjusted as per requirement
- Once you have added the user commit the changes back to server by clicking on "Commit Changes" which is on top of the window.
- Watch the log at bottom for any error.

This is all about the user permissions. If you happen to use Team System Web Access (TSWA) then you need to add the user to local NT security group called "Tswa Users" on TFS Server where the Team System Web Access is loaded. Use the following command to add user to the local group
- net localgroup "Tswa Users" <UserID> /add
Enjoy this article?
Categories
- ASP.NET (1)
- CMMi (1)
- Excel 2007 (1)
- Exchange (1)
- IIS (2)
- InfoPath (1)
- PowerShell (2)
- SharePoint (17)
- SQL Server (1)
- Team Foundation Server (TFS) (5)
- Virtual PC (1)
- Virtualization (1)
- Vista (2)
- Windows (6)
- Wordpress (1)
- WSS (7)
Archives
- May 2011 (1)
- April 2011 (1)
- March 2011 (1)
- April 2010 (1)
- March 2010 (1)
- October 2009 (3)
- March 2009 (1)
- February 2009 (3)
- December 2008 (1)
- November 2008 (8)
- October 2008 (1)
- September 2008 (1)
- August 2008 (2)
- July 2008 (7)
Most Viewed
- SharePoint Calculated Columns Formulas - 63,611 views
- Configuring SharePoint 2010 Document Libraries with Exchange Server 2010 to receive mails from internal/external world - 6,739 views
- SharePoint Planning and Architecture Resources : Visio Diagrams - 5,551 views
- Utility to recursively “Unblock” files downloaded from Internet - 5,285 views
- Permanently Disable file “Unblock” security feature in Vista - 4,867 views
- Determine the site template used to create SharePoint sites - 4,860 views
- Excel 2007 creating Hyperlinks programmatically - 4,859 views
- Installing a language pack for SharePoint (MOSS SP1 and WSS 3.0 SP1) - 4,781 views
- PowerShell Script to check SQL server connectivity, version, custering status, user permissions - 4,612 views
- TFS 2005 Customize Work Item Template and Process Template – Part II - 4,191 views
![]() |
![]() |
![]() |
![]() |
About Sameer Dhoot
What’s Inside
Recent Posts
- SharePoint 2010 Error Changing Variation Label Display Name
- PowerShell Script to check SQL server connectivity, version, custering status, user permissions
- SharePoint 2010 Language Pack Installing Support for East Asian Languages
- Configuring SharePoint 2010 Document Libraries with Exchange Server 2010 to receive mails from internal/external world
- Installation Issue SharePoint Server 2010 Release Candidate on Domain Controller
- SharePoint 2010 Resources on Architecture, Planning, Search, SDK
- SharePoint 2010 now supports Integrated ASP.NET Pipeline
- Boot From VHD – Replacing Vista or Windows 2008 Bootloader with Windows 7 Bootloader
- SharePoint Calculated Columns Formulas
- SharePoint Cumulative Update for Feb 2009
Recent Comments
- luke on Utility to recursively “Unblock” files downloaded from Internet
- Web Hosting on Determine the site template used to create SharePoint sites
- sarnst on SharePoint Calculated Columns Formulas
- Franklin on Utility to recursively “Unblock” files downloaded from Internet
- Janet on Excel 2007 creating Hyperlinks programmatically




December 18th, 2008 - 14:25
Is this tool supported on TFS 2008?
December 18th, 2008 - 15:03
Yes it works with TFS 2008. I am using this with TFS 2008 currently.