GitLab API icon

GitLab API

Gitlab

Actions1062

Members → getApiV4ProjectsIdMembersAll

AI-generated

Summary

Retrieve a list of all members of a specified GitLab project, optionally filtering by user IDs, member state, and other query parameters.

Inputs

  • id (required) — The project ID to retrieve members from.
  • query — A query string to search for specific members.
  • user_ids — Array of user IDs to filter membership information for.
  • show_seat_info — Boolean flag to include seat information for members.
  • state — Filter members by their state, either 'awaiting' or 'active'.
  • page — The page number for paginated results (default 1).
  • per_page — Number of members to return per page (default 20).

Output shape

a list of member objects representing all members of the specified project, including pagination if applicable

The response may be paginated according to the 'page' and 'per_page' query parameters. Optional fields depend on the query parameters such as 'show_seat_info'. Errors are handled according to GitLab API conventions.

Examples

Example 1: Retrieve first page of all members for a project with ID '12345'

Set 'id' path parameter to '12345'. Optionally set pagination and filter parameters as needed.

Links

Discussion