GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdGroups

AI-generated

Summary

Retrieve the groups associated with a specific GitLab project using its ID or URL-encoded path, with optional filtering and pagination.

Inputs

  • id (required) — The ID or URL-encoded path of the project to fetch groups for.
  • search — Filter groups by name matching this search string.
  • skip_groups — Array of group IDs to exclude from the result.
  • with_shared — Include groups that are shared with the project.
  • shared_visible_only — Limit to shared groups the user has access to.
  • shared_min_access_level — Minimum access level (10,15,20,30,40,50) required for shared groups to be included.
  • page — Page number of the results to retrieve (pagination).
  • per_page — Number of items to return per page (pagination).

Output shape

a list of groups associated with the specified project

Results are paginated according to 'page' and 'per_page' parameters. Groups may be filtered by search and access-related query parameters. Returned data conforms to GitLab API's group representation.

Examples

Example 1: Fetch first page of groups linked to project with ID '123'

Set 'id' path parameter to '123'. Optionally set pagination and filters in query parameters.

Links

Discussion