GitLab API icon

GitLab API

Gitlab

Actions1062

Groups → getApiV4GroupsIdUsers

AI-generated

Summary

Retrieve users of a specific GitLab group by its ID using the GitLab API v4 endpoint.

Inputs

  • id (required) — The ID of the group whose users you want to fetch.
  • search — Filter users by searching their name, email, or username.
  • active — Filter to include only active users when true.
  • include_saml_users — Include users with a SAML identity within the group when true.
  • include_service_accounts — Include service accounts owned by this group when true.
  • page — Page number for paginated results; defaults to 1.
  • per_page — Number of users to return per page; defaults to 20.

Output shape

a list of user objects belonging to the specified GitLab group.

Supports pagination via 'page' and 'per_page' query parameters. Optional filters can refine results by user status and attributes such as SAML or service accounts.

Examples

Example 1: Retrieve active users with usernames matching 'john' in group ID 123

Set 'id' path parameter to 123. Set 'search' query parameter to 'john'. Set 'active' query parameter to true.

Links

Discussion