How to hide projects in TFS source control from an Active Directory group

active-directoryteam-foundation-server

We have a group of contractors that need to have limited access to source control under TFS. I added the contractors to an Active Directory group and explicitly denied all permissions to Source Control for that group on the root folder $/ and can see that the permissions are being inherited by the project folders, but when logged in as one of the contractors the folder/file structure of source control is still visible.

The contractor accounts can't actually download files from source control, but I need to completely hide the folder structure as well. I've verified with Attrice TFS sidekicks that the effective permissions for one of the contractors is as desired but no luck. What would cause the folder structure to be viewable when the Read permission is explicitly denied for a user?

Best Answer

Which TFS group are you adding the AD group to? It sounds like you're adding users at the server or Team Project Collection level (If you're using TFS 2010). I would say that it's better to add users at the Team Project level.

When you create a new Team Project TFS will create 4 groups. I.e. If you create a Team Project called "Luke" then there will be groups called "Luke Project Administrators", "Luke Contributors", "Luke Readers" and "Luke Build Services"

If you add the contractors to "Luke Contributors" then they will only be able to see the "Luke" Team Project in Source Control. $/Luke/