GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the memberships of a billable member within a specific GitLab group. It is useful for scenarios where you need to check or manage the membership details of a user who is a billable member of a group in GitLab, such as auditing user roles or permissions within the group.

Use Case Examples

  1. Get the membership details of a user with user ID 123 in the group with ID 'my-group'.
  2. List all memberships for a billable member to verify their access levels in a GitLab group.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
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 for pagination, including page number and items per page.
Path Parameters Required path parameters identifying the group and user.

Output

JSON

  • id - The unique identifier of the membership.
  • user_id - The user ID of the billable member.
  • group_id - The ID of the group the membership belongs to.
  • access_level - The access level of the user within the group.
  • created_at - Timestamp when the membership was created.
  • expires_at - Timestamp when the membership expires, if applicable.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the group ID and user ID path parameters are correctly provided and valid to avoid 404 Not Found errors.
  • Check that the API authentication token has sufficient permissions to access group membership information to prevent authorization errors.
  • Verify the base URL is correct for your GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion