GitLab API icon

GitLab API

Gitlab

Actions1062

Users → getApiV4UsersIdAssociationsCount

AI-generated

Summary

Retrieves the number of associations (projects, groups, etc.) for a given GitLab user by making a GET request to the GitLab API endpoint /api/v4/users/{id}/associations_count.

Inputs

  • id (required) — The numeric ID of the GitLab user whose associations count is requested.
  • skipAuthentication — If set to true, the node will not use the configured GitLab API credentials; otherwise credentials are used.
  • authentication — Hidden field indicating the authentication method to use (default: gitlabApi).
  • baseUrl — Base URL of the GitLab instance (default: https://gitlab.com).
  • method — HTTP method to use for the request (options: GET, POST, PUT, DELETE, HEAD, PATCH; default: GET).

Output shape

The JSON response from the GitLab API, typically an object containing a count field with the number of associations.

If the request fails, the node will throw an error as per n8n's HTTP request handling.

Examples

Example 1: Get associations count for user ID 42

Set id to 42. Leave other fields at their defaults unless using a self‑hosted GitLab instance or a different auth method.

Links

Discussion