Developer Portal for YouTrack and Hub Help

Nested Groups

The subgroups of the user group.

Resource

/api/groups/{groupID}/subGroups

Returned entity

NestedGroup. For the description of the entity attributes, see Supported Fields section.

Supported methods

NestedGroup attributes

Represents a user group in YouTrack that either has a parent or subgroups.

Extends UserGroup

Attributes

This table describes attributes of the NestedGroup entity.

  • To receive an attribute in the response from the server, specify it explicitly in the fields request parameter.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

id

String

The database ID of the group. Read-only.

parentGroup

NestedGroup

The parent group of the user group.

subGroups

NestedGroup

The subgroups of the user group.

ownUsers

User

The users added to the user group directly.

requireTwoFactorAuthentication

Boolean

True if the group requires two-factor authentication from its members. Otherwise, false.

viewers

The users and groups added to the "Visible to" setting for the user group.

updaters

The users and groups added to the "Updatable by" setting for the user group.

autoJoin

Boolean

True if users automatically join the group at first login. Otherwise, false.

autoJoinDomain

String

Users from this domain automatically join the group at first login. Can be null.

name

String

The name of the group. Read-only.

ringId

String

ID of the group in Hub. Use this ID for operations in Hub, and for matching groups between YouTrack and Hub. Read-only. Can be null.

usersCount

Long

The number of users in the group. Read-only.

icon

String

The URL of the group logo. Read-only. Can be null.

allUsersGroup

Boolean

True if this group contains all users, otherwise false. Read-only.

users

Array of Users

All users in this group, including transitive users. Read-only.

Read a List of NestedGroups

Read the list of subgroups of the specific group.

Required permissions

Requires access to the "Read Groups" feature, Update Project permission, or Low-Level Admin Read permission.

Request syntax

GET /api/groups/{groupID}/subGroups?{fields}&{$top}&{$skip}

null

The database ID of NestedGroup

Request parameters

Parameter

Type

Description

fields

String

A list of NestedGroup attributes that should be returned in the response. If no field is specified, only the entityID is returned.

$skip

Int

Optional. Lets you set a number of returned entities to skip before returning the first one.

$top

Int

Optional. Lets you specify the maximum number of entries that are returned in the response. If you don't set the $top value, the server limits the maximum number of returned entries.

The server returns a maximum of 42 entries for most resources that return collections. For more information, see Pagination.

Sample

Sample request

https://example.youtrack.cloud/api/groups/23-1/subGroups?fields=id,name,usersCount

Sample response body

[ { "name": "General Accounting", "id": "23-154", "$type": "NestedGroup" } ]
30 March 2026