GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific custom attribute of a user from the GitLab API. It is useful in scenarios where you need to access user-specific metadata stored as custom attributes, such as fetching a user's department, role, or any other custom information defined in GitLab.

Use Case Examples

  1. Fetch the custom attribute 'department' for a user with ID 123 to integrate user metadata into an HR system.
  2. Retrieve a user's custom attribute 'project_access_level' to determine their permissions in an external application.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
baseUrl The 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 user ID and the key of the custom attribute to retrieve.

Output

JSON

  • id - The ID of the user.
  • key - The key of the custom attribute.
  • value - The value of the custom attribute.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the user ID and custom attribute key are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API credentials have sufficient permissions to access user custom attributes.
  • If skipping authentication, confirm the endpoint supports unauthenticated access, otherwise the request will fail.

Links

Discussion