GitLab API

GitlabTool

Actions1000

Overview

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

Use Case Examples

  1. Fetch details of a user with user ID 123 in group with ID 'my-group' to check their membership status.
  2. Retrieve membership information to audit group members in an automated workflow.

Properties

Name Meaning
Skip Authentication Option to skip API authentication, useful for testing or public endpoints.
Authentication Type of authentication used for the API call, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the group ID and user ID for the API endpoint.

Output

JSON

  • id - The unique identifier 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 within 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 correctly provided and exist in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to access group member information.
  • If skipping authentication, confirm the endpoint is accessible without authentication, otherwise the request will fail.
  • Common error messages include 404 Not Found if the group or user does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion