GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to disable two-factor authentication for a specified user by their user ID. It is useful in scenarios where an administrator needs to programmatically disable 2FA for a user, such as during account recovery or troubleshooting access issues.

Use Case Examples

  1. Disabling two-factor authentication for a user with a specific ID in GitLab.
  2. Automating user management tasks related to security settings in GitLab.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET but supporting PATCH for this operation.
Parameter Schema Defines the path parameter 'id' which is the user ID required for the operation.
Request Body Schema Schema for the request body, not used in this operation.
Request Path The API endpoint path template for disabling two-factor authentication for a user.
Path Parameters Collection of path parameters including 'id' which specifies the user ID for the API call.

Output

JSON

  • response - The JSON response from the GitLab API after disabling two-factor authentication for the user.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API authentication credentials are correctly configured and have sufficient permissions to disable two-factor authentication for users.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion