TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Role and Permission

Last modified: 20 April 2023

Role is a set of permissions that can be granted to a user in one or all projects. Permission is an authorization granted to TeamCity user to perform particular operations, for example run build, or modify build configuration settings.

TeamCity authorization supports two modes: simple and per-project.

In simple mode, there are only three types of authorization levels: guest, logged-in user and administrator. In per-project mode, you can assign users Roles in projects or server-wide. Set of permissions in roles are editable.

Changing Authorization Mode



Unless explicitly configured, simple authorization mode is used when TeamCity is working in Professional mode and per-project is used when working in Enterprise mode. To change the authorization mode, use the Enable per-project permissions check box at the Administration|Global Settings page.

Simple Authorization Mode



Per-Project Authorization Mode



Roles are assigned to users by administrators on a per-project basis - a user can have different roles in different projects, and hence, the permissions are project-based. A user can have a role in a specific project or in all available projects, or no roles at all. You can Managing Users and User Groups. A role can also be granted to a user group. This means that the role is automatically granted to all the users that are included into the group (both directly or through other groups).

By default, TeamCity provides the following roles:

When per-project permissions are enabled, server administrators can modify these roles, delete them, or add new roles with any combination of permissions right in TeamCity Administration web UI, or by modifying the roles-config.xml file stored in < >/config directory. When assigning roles to users, the view role permissions link in the web UI displays a list of permissions for each role in accordance with their current configuration.