GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a member from a specific GitLab group using the GitLab API. It is useful for managing group memberships by removing users who should no longer have access to the group. For example, an administrator can automate the removal of users from groups when they leave a project or organization.

Use Case Examples

  1. Remove a user from a GitLab group by specifying the group ID and user ID.
  2. Automate cleanup of group memberships by deleting members who are no longer active.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication The authentication method used for the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Query Parameters Optional query parameters to modify the delete operation, including skipping deletion of memberships in subgroups and unassigning the member from issues or merge requests.
Path Parameters Required path parameters specifying the group ID and the user ID of the member to delete.

Output

JSON

  • success - Indicates if the member was successfully deleted.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the group ID and user ID are correct and exist in GitLab.
  • Check that the API token has sufficient permissions to delete group members.
  • Verify the base URL is correct for the GitLab instance being used.
  • If skipping authentication, ensure the API endpoint allows unauthenticated requests, otherwise the request will fail.

Links

Discussion