GitLab API

GitlabTool

Actions1095

Users → postApiV4UsersIdBan

AI-generated

Summary

Ban a user on a GitLab instance by specifying their user ID.

Inputs

  • Id (required) — The ID of the user to ban.
  • Skip Authentication — Optionally skip authentication when making the API call (default is false).
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a single JSON object representing the result of the ban operation from GitLab's API

The operation sends a POST request to the endpoint /api/v4/users/{id}/ban with the user ID provided in the path parameter. Authentication credentials for GitLab API are required unless skipped. The response contains details of the ban action performed.

Links

Discussion