GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a member from a specific GitLab project using the GitLab API. It is useful for managing project memberships by removing users who should no longer have access to the project. For example, it can be used in automated workflows to revoke access when a team member leaves a project or organization.

Use Case Examples

  1. Remove a user from a project by specifying the project 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, typically an API key or token.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, which is DELETE for this operation.
Parameter Schema Defines the required and optional parameters for the API call, including project ID, user ID, and optional query flags to control deletion behavior.
Query Parameters Optional query parameters to control the deletion behavior, such as skipping subresource deletions and unassigning issuables.
Path Parameters Path parameters specifying the project ID and user ID of the member to delete.

Output

JSON

  • success - Indicates whether the member was successfully deleted.
  • statusCode - HTTP status code returned by the API.
  • message - Additional message or error information from the API response.

Dependencies

  • GitLab API authentication token or API key

Troubleshooting

  • Ensure the project ID and user ID are correct and exist in GitLab.
  • Check that the API authentication token has sufficient permissions to delete project members.
  • If the API returns a 404 error, verify that the member exists in the specified project.
  • If the API returns a 403 error, check the permissions of the API token and whether the user has rights to remove members.

Links

Discussion