GitLab API

GitlabTool

Actions1000

Overview

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

Use Case Examples

  1. Remove a user from a GitLab project by specifying the project ID and the user's ID.
  2. Skip deleting memberships in subgroups or unassign the user from issues and merge requests during removal.

Properties

Name Meaning
Skip Authentication Whether to skip the authentication process for the API request.
Authentication The authentication method used for the API request, hidden if skipping authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET but DELETE is relevant here.
Query Parameters Optional query parameters to control deletion behavior, including skipping subresource memberships and unassigning issuables.
Path Parameters Required path parameters identifying the project and user to delete.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and user ID are correct and the authenticated user has permission to remove members from the project.
  • If skipping authentication, the request may fail due to lack of authorization.
  • Check that the base URL is correct for the GitLab instance being accessed.
  • Verify that query parameters are correctly formatted as booleans if used (e.g., true/false).

Links

Discussion