GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a member from a specific GitLab group using the GitLab API. It is useful for managing group memberships programmatically, such as removing users who no longer need access to a group. For example, an admin can automate the removal of users from project groups when they leave a team or complete a project.

Use Case Examples

  1. Remove a user from a GitLab group by specifying the group ID and user ID.
  2. Skip deleting memberships in subgroups and projects by setting the skip_subresources flag.
  3. Unassign the removed member from issues or merge requests by setting the unassign_issuables flag.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method The HTTP method used for the request, default is GET but DELETE is used for this operation.
Parameter Schema Defines the path and query parameters required for the delete operation, including group ID, user ID, and optional flags to control deletion behavior.
Query Parameters Optional query parameters to control deletion behavior: skip_subresources and unassign_issuables.
Path Parameters Path parameters specifying the group ID and user ID of the member to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after attempting to delete the member.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and user ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API key has sufficient permissions to delete group members.
  • If skip_subresources or unassign_issuables flags are used, verify their boolean values are correctly set to avoid unexpected behavior.

Links

Discussion