---
schema: rendered-html/v1
title: "Nested Groups | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/resource-api-groups-groupID-subGroups.html
generated_at: 2026-06-11T15:12:06.182486+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Get Started with REST API
- REST API Reference
- Entities
- Resources
- Activity Items
- Issue Activities Page
- Build Bundles
- Enum Bundles
- Owned Bundles
- State Bundles
- User Bundles
- Version Bundles
- Custom Fields
- Field Types
- Backup Files
- Database Backup Settings
- Global Settings
- Organizations
- Projects
- Telemetry data
- Global Time Tracking Settings
- Agiles
- [Articles](jetbrains__com__help__youtrack__devportal__resource-api-articles.md)
- [Assigned Roles](jetbrains__com__help__youtrack__devportal__resource-api-assignedroles.md)
- [Commands](jetbrains__com__help__youtrack__devportal__resource-api-commands.md)
- [Command Suggestions](jetbrains__com__help__youtrack__devportal__resource-api-commands-assist.md)
- [User Groups](jetbrains__com__help__youtrack__devportal__resource-api-groups.md)
- Operations with Specific UserGroup
- Sub-resources
- [Users](jetbrains__com__help__youtrack__devportal__resource-api-groups-groupid-ownusers.md)
- [Nested Groups](resource-api-groups-groupID-subGroups.html)
- [Users](jetbrains__com__help__youtrack__devportal__resource-api-groups-groupid-users.md)
- [Issue Link Types](jetbrains__com__help__youtrack__devportal__resource-api-issuelinktypes.md)
- Issue Tag
- Issues
- Issue Count
- Permissions
- Roles
- Saved Queries
- Search Suggestions
- Tags
- Users
- My User Profile
- Issue Work Items
- REST API Use Cases
- REST API Troubleshooting
- Color Indices List
- Hub REST API

1. YouTrack REST API
2. REST API Reference
3. Resources
4. [User Groups](jetbrains__com__help__youtrack__devportal__resource-api-groups.md)
5. [Sub-resources](#0)
6. [Nested Groups](#0)

# Nested Groups﻿

Last modified: 01 April 2026

The subgroups of the user group.

| Resource | ``` /api/groups/{groupID}/subGroups ``` |
| --- | --- |
| Returned entity | NestedGroup. For the description of the entity attributes, see [Supported Fields](/help/youtrack/devportal/resource-api-groups-groupID-subGroups.html#NestedGroup-supported-fields) section. |
| Supported methods | - `GET`: [Read a List of NestedGroups](/help/youtrack/devportal/resource-api-groups-groupID-subGroups.html#get_all-NestedGroup-method). |

## 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 | - User - UserGroup | The users and groups added to the "Visible to" setting for the user group. |
| updaters | - User - UserGroup | 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.

Additionally, you must not be filtered out by the "Visible to" list for this group.

### 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"
]
```

- [Nested Groups](/help/youtrack/devportal/resource-api-groups-groupID-subGroups.html)
- [NestedGroup attributes](/help/youtrack/devportal/resource-api-groups-groupID-subGroups.html#NestedGroup-supported-fields)
- [Read a List of NestedGroups](/help/youtrack/devportal/resource-api-groups-groupID-subGroups.html#get_all-NestedGroup-method)

Operations with Specific User[Users](jetbrains__com__help__youtrack__devportal__resource-api-groups-groupid-users.md)

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
