GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a shared group from a specific GitLab project using the GitLab API. It is useful for managing project access by removing group sharing permissions. For example, if a project is shared with a group and you want to revoke that access, this operation will delete the group share from the project.

Use Case Examples

  1. Removing a group's access to a project by specifying the project ID and the group ID to delete the share.
  2. Automating project permission cleanup by deleting group shares when they are no longer needed.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but here it will be DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the project and group to delete the share for.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • body - Response body from the GitLab API after deleting the group share

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and group ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API token used has sufficient permissions to delete group shares on the project.
  • If authentication is skipped, the request may fail due to lack of authorization.

Links

Discussion