Welcome to the second entry in
Joel and my series on Microsoft Teams System (aka Team Foundation Server, aka TFS). To catch up, check out the previous entries in the series:
- Overview
In this post I'm going to cover the details of creating a new team project including the intricacies of setting up project permissions and permissions for the corresponding SharePoint and Reporting Services.
Creating a New Project
Creating a new project in TFS is pretty straight forward and involves the following steps:
- Launch Team Explorer (Visual Studio).
- In the Team Explorer toolbox, right click on your server name and choose "New Team Project...".
- In the wizard, give your project a proper name and description. You can name a project anything you want, but you should give some thought to this before committing to something because you cannot change this once the project is created. If you work in an organization like ours where you have many projects, a consistent naming convention is important. We use {ClientName}.{ProjectName}, so for this test I will create a project called Slalom.Test, Slalom because it is an internal project so we are our own client and Test because I'm just going to delete this thing when I'm done.
- Choose a project template. TFS comes with two built in, however you can create your own custom templates as well, allowing you to have some pre-canned work items generated for every project you create. We'll talk about template customization later in the series, for now we will just choose Agile.
- Choose where you want your source control, by default TFS builds out a new repository, in most cases this is what you will want to do.
- Once you click finish and let TFS build out your project you will have a new project listed in Team Explorer.
Setting Project Permissions
TFS allows you apply roles to your different users, these roles can be adjusted by right clicking on your team project and choosing "Team Project Settings > Group Membership..."
For a project, there are four groups available for classifying your users rights:
- Readers - Users that can access the project, but are not able to modify work items or check in code.
- Project Administrators - Users that can do anything within the project.
- Contributers - Users that can make changes in the project but are now allowed administrative tasks.
- Build Services - System role for building the project (for service accounts only).
Most people generally fall under project administrators or contributors.
Setting SharePoint and Reporting Services Permissions
Unfortunately setting permissions within TFS does not complete the process. Permissions must also be granted individually to the corresponding SharePoint site and SQL Server Reporting Services.
For SSRS permissions, we have simplified this by creating a Team Foundation Server Users domain group and putting all valid TFS users into that group, then giving that group read permission on the reporting server. This saves us from having to set these permissions each time.
For SharePoint we still must grant users proper access, do this follow these steps:
- Access your project portal (right click on your project and choose "Show Project Portal...") as an administrator.
- Choose "Site Settings" from the "Site Actions" drop down on the site.
- Choose "Advanced Permissions" from "Users and Permissions".
- Choose "New" to add your users and give them specific SharePoint permissions.