TeamCity REST API Reference 2024.03 Help

Manage User Groups

This article lists REST API requests concerning user groups.

Get User Groups

To get all user groups, use:


The endpoint responds with a Groups entity which contains instances of a Group entities.

Get User Group Details

A specific user group can be retrieved via:


groupLocator is typed as UserGroupLocator.

Create User Group

To create a new user group, POST a Group entity to:


Example payload:

<group key="key" name="groupName" description="description"> <users> <user username="username"/> </users> <roles> <role roleId="roleId"> </roles> </group>
{ "roles" : { "role" : { "roleId": "roleId" } }, "name" : "name", "description" : "description", "key" : "key", "users" : { "user" : [ { "username" : "username" } ] } }

Delete User Group

To delete a group, use the following request:

Last modified: 27 March 2024