GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the count of associations for a specific user in GitLab via the GitLab API v4. It is useful for scenarios where you need to get metadata about a user's linked resources or associations within GitLab, such as integrations or connected accounts. For example, it can be used in automation workflows to monitor user activity or manage user-related data in GitLab.

Use Case Examples

  1. Get the number of associations for a user with a given user ID to audit user connections.
  2. Use the count of user associations to trigger alerts or further actions in a DevOps pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for 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 request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters The path parameters for the API request, specifically the user ID to query.

Output

JSON

  • associations_count - The count of associations for the specified user.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • If authentication is enabled, verify that the API key credential is correctly configured and has sufficient permissions to access user data.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion