GitLab API

GitlabTool

Actions1095

Groups → getApiV4GroupsIdSubgroups

AI-generated

Summary

Retrieves a paginated list of subgroups belonging to a specific GitLab group.

Inputs

  • id (required) — The ID of the group to fetch subgroups for.
  • queryParameters — Additional query parameters to filter the result, such as visibility, search, pagination (page, per_page), and access level restrictions.
  • baseUrl — The base URL of the GitLab instance (defaults to https://gitlab.com).
  • skipAuthentication — If set to true, the operation skips authentication (requires the credential to have a token or be skipped).

Output shape

A list of items, where each item represents a subgroup.

The response is paginated by default (20 items per page). Supports various filters including visibility, search terms, and access levels.

Examples

Example 1: List all public subgroups for a specific group ID

Set Path Parameter id to the target group ID and queryParameters visibility to 'public'.

Example 2: Search for subgroups by name

Set queryParameters search to the search term and queryParameters owned to true to limit to user-owned groups.

Links

Discussion