GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves information about a specific member of a GitLab project using the GitLab API. It is useful for scenarios where you need to get details about a user's membership in a project, such as their access level or membership status. For example, it can be used in automation workflows to verify user permissions or to audit project members.

Use Case Examples

  1. Get details of a member with user ID 123 in project with ID 'my-project'.
  2. Check membership status of a user before performing project-related actions.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path, including project ID and user ID of the member.

Output

JSON

  • id - The project ID provided in the path parameter.
  • user_id - The user ID of the member provided in the path parameter.
  • access_level - The access level of the member in the project.
  • state - The membership state of the user in the project.
  • created_at - Timestamp when the membership was created.

Dependencies

  • Requires GitLab API key credential for authentication unless Skip Authentication is enabled.

Troubleshooting

  • Ensure the project ID and user ID are correctly provided and exist in GitLab.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • HTTP method should be GET for this operation; using other methods may cause errors.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion