GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves detailed information about a specific user from the GitLab API (version 4) by their user ID. It is useful for scenarios where you need to fetch user details such as profile information, custom attributes, or other user-specific data from a GitLab instance. For example, it can be used in automation workflows to verify user details before granting access or to synchronize user data with other systems.

Use Case Examples

  1. Fetch user details by user ID to display in an internal dashboard.
  2. Retrieve user custom attributes for auditing or reporting purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication step for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. This is hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance to which the API request is sent. Defaults to https://gitlab.com.
Method The HTTP method used for the API request. Defaults to GET. Options include GET, POST, PUT, DELETE, HEAD, PATCH.
Query Parameters Optional query parameters for the API request, such as including custom attributes in the response.
Path Parameters Path parameters required for the API request, specifically the user ID to fetch.

Output

JSON

  • id - The unique identifier of the user.
  • username - The username of the user.
  • name - The full name of the user.
  • state - The state of the user (e.g., active, blocked).
  • avatar_url - URL to the user's avatar image.
  • web_url - URL to the user's GitLab profile page.
  • created_at - Timestamp when the user was created.
  • bio - User biography or description.
  • location - User's location information.
  • public_email - User's public email address.
  • skype - User's Skype contact.
  • linkedin - User's LinkedIn profile URL.
  • twitter - User's Twitter handle.
  • website_url - User's personal or professional website URL.
  • organization - Organization the user belongs to.
  • last_sign_in_at - Timestamp of the user's last sign-in.
  • confirmed_at - Timestamp when the user was confirmed.
  • last_activity_on - Date of the user's last activity.
  • email - User's email address.
  • theme_id - ID of the user's selected theme.
  • color_scheme_id - ID of the user's color scheme.
  • projects_limit - Limit on the number of projects the user can create.
  • current_sign_in_at - Timestamp of the user's current sign-in.
  • identities - List of identities associated with the user.
  • can_create_group - Boolean indicating if the user can create groups.
  • can_create_project - Boolean indicating if the user can create projects.
  • two_factor_enabled - Boolean indicating if two-factor authentication is enabled.
  • external - Boolean indicating if the user is external.
  • private_profile - Boolean indicating if the user's profile is private.
  • is_admin - Boolean indicating if the user has admin privileges.
  • note - Additional notes about the user.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance to avoid 404 errors.
  • If authentication is required, verify that the API key or token is correctly configured and has sufficient permissions to access user data.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If the 'with_custom_attributes' query parameter is used, ensure the user has custom attributes defined; otherwise, the response may not include them.

Links

Discussion