GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the memberships of a specific user from the GitLab API (v4). It is useful for scenarios where you need to fetch the projects or namespaces a user is a member of, such as managing user permissions, auditing memberships, or integrating user data into other workflows.

Use Case Examples

  1. Fetch all project memberships for a user to display their access rights.
  2. Retrieve namespace memberships to understand user roles within groups or organizations.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to filter or paginate the results.
Path Parameters Path parameters required for the API call.

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 incorrect user_id will cause errors.
  • Check that the API authentication token is valid and has sufficient permissions to access user memberships.
  • Pagination parameters (page, per_page) should be integers; invalid values may cause unexpected results or errors.

Links

Discussion