Search code examples
visual-studio-2010tfsactive-directorytfs-process-template

TFS2010 - Is there a way to pre-populate a project group


In our shop, all the developers have read only to the code. Everyone has been put in a group called TFSReader.

In TFS 2005, whenever I create a new project, I have to add the group to the [Project]\Readers group.

We are now looking to upgrade to TFS2010 now and we're wondering Is there a way to configure TFS to automatically put the TFSReader group under [Project]\Readers?

Should I be messing with the processTemplates?


Solution

  • So it turns out the process template was the right way to go.

    I got an answer over at the msdn forums. http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/108ad70b-2a4a-4ec4-b8e0-e41d72766484

    I downloaded the process template, made a copy and change the GroupsandPermissions.xml file.

    I added the Member tag and uploaded the new process.

    It worked like a charm!

        <group name="Readers" description="Members of this group have access to the team project.">
          <permissions>
            <permission name="GENERIC_READ" class="PROJECT" allow="true" />
            <permission name="VIEW_TEST_RESULTS" class="PROJECT" allow="true" />
            <permission name="GENERIC_READ" class="CSS_NODE" allow="true" />
            <permission name="WORK_ITEM_READ" class="CSS_NODE" allow="true" />
          </permissions>
          <members>
            <member name="MyDomain\TfsReader" />
          </members>
        </group>