GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation unbans a user in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/users/{id}/unban`. It is useful for administrators who want to programmatically lift bans on users by specifying the user's ID. For example, it can be used in workflows that automate user management and moderation in GitLab projects.

Use Case Examples

  1. Unban a user with ID 12345 by specifying the ID in the path parameters.
  2. Automate unbanning users after a review process in a GitLab project management workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST for this operation.
Path Parameters Parameters to be included in the request path, specifically the user ID to unban.

Output

JSON

  • id - The ID of the unbanned user.
  • username - The username of the unbanned user.
  • state - The state of the user after unbanning, typically 'active'.
  • message - Response message confirming the unban action.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • Authentication errors may occur if the API token is missing, expired, or lacks sufficient permissions to unban users.
  • The base URL must be correctly set to the GitLab instance URL if not using the default https://gitlab.com.
  • HTTP method must be POST for this operation; using other methods may result in errors.

Links

Discussion