user:disable-two-factor command allows administrators to disable two-factor authentication (2FA) for users who have lost access to their authenticator app or recovery codes.
Command Signature
| Parameter/Option | Description |
|---|---|
user_email | The email address of the user (case-insensitive) |
reason | Reason for disabling 2FA (required for audit logging) |
--force | Skip confirmation prompt (non-admin users only) |
--allow-admin | Allow disabling 2FA for admin users (always requires interactive confirmation) |
Usage Examples
Running in Docker
- Docker Compose
- Docker (standalone)
Use
-it flags for interactive commands (without --force) to allow the confirmation prompt.Security Notes
- All operations are logged to the Slack admin channel with user ID, email, reason, and admin override status
- Admin users require
--allow-adminflag and cannot bypass confirmation with--force - Users who can access their authenticator should disable 2FA through their account settings instead