GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows creating a new access token for a specific group in GitLab via the GitLab API. It is useful for automating the management of group access tokens, which can be used to authenticate and authorize actions on behalf of the group. For example, it can be used in CI/CD pipelines or automation workflows to generate tokens dynamically for accessing group resources securely.

Use Case Examples

  1. Creating a new access token for a GitLab group to enable automated scripts to interact with the group's repositories.
  2. Automating the generation of access tokens for different groups to manage permissions programmatically.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the group ID for this operation.

Output

JSON

  • id - The ID of the created access token.
  • name - The name of the access token.
  • token - The actual access token string.
  • scopes - The scopes or permissions granted by the access token.
  • created_at - Timestamp when the access token was created.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID provided in the path parameters is correct and the authenticated user has permission to create access tokens for that group.
  • If authentication is skipped, the request will likely fail unless the GitLab instance allows anonymous token creation, which is uncommon.
  • Check that the base URL is correct and accessible, especially if using a self-hosted GitLab instance.
  • Common error messages include 401 Unauthorized (authentication issues), 403 Forbidden (insufficient permissions), and 404 Not Found (invalid group ID). Resolving these involves verifying credentials, permissions, and input parameters.

Links

Discussion