GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the list of users that a specified user is following on GitLab using the GitLab API v4. It is useful for scenarios where you want to analyze or display the social connections of a GitLab user, such as in social network analysis, user engagement tracking, or community management.

Use Case Examples

  1. Get the list of users followed by a specific GitLab user by providing their user ID.
  2. Paginate through the following list by specifying page number and items per page to handle large datasets.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication when making the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters to control pagination of the results.
Path Parameters Path parameters required for the API endpoint.

Output

JSON

  • id - The unique identifier of the followed user
  • username - The username of the followed user
  • name - The full name of the followed user
  • state - The state of the followed user (e.g., active)
  • avatar_url - URL to the avatar image of the followed user
  • web_url - URL to the followed user's GitLab profile

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in GitLab; otherwise, the API will return an error.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions to access user data.
  • Pagination parameters (page and per_page) should be valid integers; invalid values may cause the API to return errors or unexpected results.

Links

Discussion