GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves all members of a specified GitLab project using the GitLab API v4 endpoint `/api/v4/projects/{id}/members/all`. It is useful for scenarios where you need to list or manage project members, including filtering by member state, searching by query, or paginating results. For example, it can be used to fetch all active members of a project or to get detailed membership information including seat info.

Use Case Examples

  1. Fetch all members of a GitLab project by project ID.
  2. Search for members in a project using a query string.
  3. Filter project members by their state (active or awaiting).
  4. Paginate through project members with page and per_page parameters.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used for the request, hidden unless Skip Authentication is false. Defaults to GitlabApi.
baseUrl The base URL of the GitLab instance. Defaults to https://gitlab.com.
Method HTTP method to use for the request. Defaults to GET.
Query Parameters Collection of optional query parameters to filter or paginate the members list.
Path Parameters Path parameters required for the request.

Output

JSON

  • id - The unique identifier of the member.
  • username - The username of the member.
  • name - The full name of the member.
  • state - The state of the member (e.g., active, awaiting).
  • access_level - The access level of the member in the project.
  • expires_at - The expiration date of the member's access, if any.
  • avatar_url - URL to the member's avatar image.

Dependencies

  • GitLab API authentication (an API key credential)

Troubleshooting

  • Ensure the project ID path parameter is correctly set; missing or incorrect ID will cause request failures.
  • Verify that the authentication credentials are valid and have sufficient permissions to access project members.
  • Check that query parameters are correctly formatted, especially arrays like user_ids.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated access to project members, otherwise the request will fail.

Links

Discussion