GitLab API icon

GitLab API

Gitlab

Actions1062

Users → patchApiV4UsersIdDisableTwoFactor

AI-generated

Summary

Disables two-factor authentication for a specified GitLab user via a PATCH request to /api/v4/users/{id}/disable_two_factor.

Inputs

  • id (required) — The numeric ID of the user whose 2FA will be disabled.
  • skipAuthentication — If true, the node will not use the configured GitLab API credential; otherwise the credential is required.

Output shape

object

Contains the response returned by the GitLab API after disabling two-factor authentication (typically the updated user object).

Examples

Example 1: Disable 2FA for user ID 42.

Set the Id path parameter to 42, leave skipAuthentication false (default), and ensure a valid GitLab API credential is provided.

Links

Discussion