GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves information about a specific member of a GitLab group using the GitLab API. It is useful for scenarios where you need to get details about a user's membership in a particular group, such as verifying access rights or auditing group members.

Use Case Examples

  1. Get details of a user who is a member of a specific GitLab group by providing the group ID and user ID.
  2. Check membership status of a user in a GitLab group before performing group-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 group ID and user ID.

Output

JSON

  • id - The ID of the group member.
  • username - The username of the group member.
  • name - The full name of the group member.
  • state - The state of the member (e.g., active, blocked).
  • access_level - The access level of the member in the group.
  • expires_at - The expiration date of the membership, if any.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and user ID are correct and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to access group member information.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error: 404 Not Found - The specified group or user member does not exist.
  • Common error: 401 Unauthorized - Authentication failed, check API key or token.

Links

Discussion