GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the memberships of a specific user from the GitLab API (version 4). It is useful for scenarios where you need to fetch information about the projects or namespaces a user is a member of, such as managing user permissions or auditing user access in GitLab projects and groups.

Use Case Examples

  1. Fetch all project memberships for a user to check their access rights.
  2. Retrieve namespace memberships to understand the user's group affiliations.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters to filter or paginate the memberships data.
Path Parameters Path parameters required for the API endpoint, specifically the user ID whose memberships are being retrieved.

Output

JSON

  • memberships - Array of membership objects representing the user's memberships in projects or namespaces.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user_id path parameter is provided and valid; missing or invalid user_id will cause the API request to fail.
  • Check that the API authentication token is valid and has sufficient permissions to access user membership data.
  • Pagination parameters (page, per_page) should be integers; invalid values may cause errors or unexpected results.
  • If filtering by type, ensure the value is either 'Project' or 'Namespace' to avoid API errors.

Links

Discussion