GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve a specific custom attribute of a user by their user ID and the attribute key. It is useful in scenarios where you need to fetch detailed user metadata stored as custom attributes in GitLab, such as for user management, auditing, or integration purposes.

Use Case Examples

  1. Fetch a custom attribute 'department' for a user with ID 123 to integrate user data into an HR system.
  2. Retrieve a custom attribute 'project_role' for a user to determine access levels in a project management tool.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key 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.
Path Parameters Parameters used in the API request path to specify the user ID and the custom attribute key to retrieve.

Output

JSON

  • custom_attribute - The retrieved custom attribute object for the specified user and key.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user ID and custom attribute key are correctly specified; incorrect values will result in errors or empty responses.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Network or base URL misconfiguration can cause request failures; confirm the baseUrl is correct for your GitLab instance.

Links

Discussion