GitLab API

GitlabTool

Actions905

Overview

This node operation fetches a user's avatar image from the GitLab API (version 4) using the user's public email address. It supports specifying the size of the avatar image in pixels. This operation is useful for workflows that need to retrieve user profile images for display or processing, such as in user management systems or integrations that display GitLab user avatars.

Use Case Examples

  1. Retrieve a GitLab user's avatar by providing their public email address to display in a team dashboard.
  2. Fetch avatar images of multiple users in an automated workflow to personalize notifications or reports.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET.
Query Parameters Parameters sent as query string in the API request to specify the email and optional size of the avatar image.

Output

JSON

  • avatarUrl - URL or data of the retrieved avatar image from GitLab API.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the provided email is a valid public email registered with GitLab to avoid empty or error responses.
  • If authentication is enabled, verify that the GitLab API credentials are correctly configured and have sufficient permissions.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion