GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves detailed information about a specific member of a GitLab project using the GitLab API. It is useful for scenarios where you need to fetch membership details of a user within a project, such as verifying user roles or permissions in project management workflows.

Use Case Examples

  1. Fetch membership details of a user with user ID 123 in project with ID 'my-project' to check their access level.
  2. Automate auditing of project members by retrieving member information programmatically.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to send the API request to, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and user ID for the member to retrieve.

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, blocked).
  • access_level - The access level of the member in the project.
  • expires_at - The expiration date of the member's access, if any.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and user ID are correctly provided and exist in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to access project member information.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to member details, which is uncommon.
  • Common error messages include 404 Not Found if the project or user does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion