TeamCity REST API Reference 2025.11 Help

Group

A TeamCity user group that unites multiple TeamCity users with identical permissions.

Related Help article: User Group

Properties

key

The group key that serves as a unique group identifier. In TeamCity REST API, group keys are used as the default group dimension, meaning you can omit the key: in path locators (for example, /app/rest/userGroups/ALL_USERS_GROUP).

name

The public group name displayed in TeamCity UI.

href

The relative (without the TeamCity server URL) link to this group.

description

The public user group description.

parent-groups

The list of parent user groups for this group. A user group inherits all roles and notification rules from its parent.

child-groups

The list of child user groups that inherit all roles and notification rules from this group. There is no API to set a list of child groups directly. Instead, edit required groups' parent-groups property via the setGroupParentGroups method.

users

The list of TeamCity users that belong to this group.

roles

The list of roles directly assigned to this group. If this group has parent groups, it inherits their roles but does not include them in this roles list.

properties

The list of additional group properties.

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<group description="Contains all TeamCity users" href="/app/rest/userGroups/key:ALL_USERS_GROUP" key="ALL_USERS_GROUP" name="All Users"> <parent-groups count="2"> <group>[[[group...|]]]</group> </parent-groups> <child-groups count="2"> <group>[[[group...|]]]</group> </child-groups> <users count="12"> <user>[[[user...|user.html]]]</user> </users> <roles> <role>[[[roleAssignment...|roleassignment.html]]]</role> </roles> <properties count="123" href="string"> <property>[[[property...|property.html]]]</property> </properties> </group>
{ "child-groups" : { "count" : 2, "group" : [ "[[[group...|]]]" ] }, "roles" : { "role" : [ "[[[roleAssignment...|roleassignment.html]]]" ] }, "name" : "All Users", "description" : "Contains all TeamCity users", "href" : "/app/rest/userGroups/key:ALL_USERS_GROUP", "parent-groups" : { "count" : 2, "group" : [ "[[[group...|]]]" ] }, "key" : "ALL_USERS_GROUP", "users" : { "count" : 12, "user" : [ { "lastLogin" : "20241001T155514+0200", "roles" : { "role" : [ "[[[roleAssignment...|roleassignment.html]]]" ] }, "groups" : { "count" : 2, "group" : [ "[[[group...|]]]" ] }, "hasPassword" : true, "password" : "foobar", "enabled2FA" : false, "name" : "John Doe", "realm" : "realm", "id" : 1, "href" : "/app/rest/users/id:11", "locator" : "null", "email" : "email", "properties" : { "count" : 1, "property" : [ { "inherited" : true, "name" : "name", "type" : "[[[type...|type.html]]]", "value" : "value" } ], "href" : "href" }, "username" : "johndoe", "avatars" : { "urlToSize80" : "/app/rest/avatars/id:1/80/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png", "urlToSize28" : "/app/rest/avatars/id:1/28/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png", "urlToSize40" : "/app/rest/avatars/id:1/40/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png", "urlToSize32" : "/app/rest/avatars/id:1/32/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png", "urlToSize20" : "/app/rest/avatars/id:1/20/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png", "urlToSize64" : "/app/rest/avatars/id:1/64/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png", "urlToSize56" : "/app/rest/avatars/id:1/56/avatar.a0b4af01-0211-4216-b2de-c295b282b4b5.png" } } ] }, "properties" : { "count" : 1, "property" : [ { "inherited" : true, "name" : "name", "type" : "[[[type...|type.html]]]", "value" : "value" } ], "href" : "href" } }
Last modified: 02 December 2025