GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific group from the job token scope groups allowlist of a GitLab project. It is useful for managing project security by controlling which groups are allowed job token access. For example, a user can remove a group that should no longer have job token permissions for a project.

Use Case Examples

  1. Remove a group with ID 2 from the allowlist of project with ID 1 to restrict its job token access.
  2. Manage project job token scope allowlist dynamically by deleting groups no longer authorized.

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 DELETE is used for this operation.
Path Parameters Parameters for the API path including project ID and target group ID to remove from allowlist.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body returned from the API after deleting the group from the allowlist.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and target group ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API key has sufficient permissions to modify the job token scope allowlist to avoid authorization errors.
  • Verify the base URL is correct if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion