GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to add a user to a cluster within a specified group. It is useful for automating the management of cluster users in GitLab groups, such as adding new users to clusters programmatically based on workflow triggers or conditions.

Use Case Examples

  1. Automatically add a user to a cluster when a new project is created in a GitLab group.
  2. Add users to clusters in bulk as part of a CI/CD pipeline setup.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, 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, defaulting to POST for this operation.
Path Parameters Parameters included in the API request path, specifically the group ID to identify the target group for the cluster user addition.

Output

JSON

  • id - The ID of the group where the cluster user is added.
  • user - Details of the user added to the cluster.
  • cluster - Information about the cluster to which the user is added.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and exists in GitLab.
  • Verify that the API key used for authentication has sufficient permissions to add users to clusters in the specified group.
  • Check the base URL to confirm it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion