GitLab API icon

GitLab API

Gitlab

Actions917

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 to use job tokens within the project. For example, a user can remove a group that should no longer have access to the project's job token scope, enhancing security and access control.

Use Case Examples

  1. Removing a group from the allowlist to restrict its access to job tokens in a CI/CD pipeline.
  2. Automating the cleanup of group permissions in a project when groups are deprecated or restructured.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to 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.
Parameter Schema Defines the required path parameters for the operation, including project ID and target group ID to remove from the allowlist.
Request Body Schema Schema for the request body, null for this operation as it does not require a body.
Request Path API endpoint path for the delete operation with placeholders for project ID and target group ID.
Path Parameters Collection of path parameters including 'id' for the project ID and 'target_group_id' for the group to be removed.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body from the API after attempting to delete 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.
  • Verify that the API key has sufficient permissions to modify project job token scope allowlists to prevent authorization errors.
  • Check the base URL if using a self-hosted GitLab instance to ensure the request is sent to the correct server.

Links

Discussion