Configure and use two-factor authentication
Two-factor authentication (2FA) adds a one-time verification code to sign-in. After the account and password are verified, the user must provide a code from an authenticator application when prompted. A user who has not bound an authenticator must first complete the binding process. This chapter primarily covers configuration and sign-in for console administrators. Verify the actual flow and applicability of other user entry points, single sign-on and clients in your deployment; do not assume that the console switch protects every entry point.
Prepare before enabling
- Use an administrator account with permission to view and modify platform settings. Authenticator binding in the personal center may also require the relevant platform-setting permissions. Ensure that the organization has people responsible for accounts and authenticator devices. The global setting affects multiple accounts, not merely the current administrator's personal preference. Notify affected users and plan a controlled test before changing it.
- Prepare a protected device with an authenticator application that generates one-time codes for a test account, and check that the device time is accurate. Arrange a support channel for a user who cannot use the authenticator device according to organizational security procedures. Do not assume that self-service recovery is available without verifying the recovery process.
- Protect binding QR codes and verification codes. Do not share them through untrusted channels or place QR-code screenshots in tickets, chats or public documents. A QR code is associated with account authentication; do not scan and bind it on behalf of another person.
Enable the global requirement
- Open Authentication Security in system settings and locate Two-Factor Authentication (2FA). If the setting fails to load, address the message first; do not infer the actual configuration from an unconfirmed display.
- Turn on the switch and confirm in the dialog. Check the save-success message and the switch state; reopen the page if a further check is needed. Displaying a confirmation dialog or moving a switch does not itself mean that the setting was saved.
- In a controlled test, sign in again with a test administrator account. After account and password verification, bind an authenticator or enter a code as prompted and confirm that sign-in completes. The global setting also affects some user sign-in flows using the same account authentication; test each relevant entry point before deployment. A successful save does not prove that every existing session immediately signed out or that every access path has been verified.
First binding and routine sign-in
- If prompted to bind during administrator sign-in, use the authenticator on the user's protected device to scan the displayed QR code. Select the authenticator entry for the current account, enter its one-time code on the page and confirm.
- After binding and signing in, protect the authenticator device. On later sign-ins, when verification is requested, obtain the current code from the same authenticator, enter it and confirm. Codes change; do not reuse an expired code.
- To check the current administrator account while signed in to the console, open the personal center and inspect security authentication under account security. When enabled, the authenticator binding state is displayed, together with the available add or rebind action. Before rebinding, ensure that the new binding and subsequent sign-in can be completed; avoid signing out without a usable authentication method.
- When the global switch is off, the current administrator can still enable security authentication individually in the personal center. If not bound, scan the QR code and enter the code as prompted. A change to account security settings may require sign-in again; verify the result using the current account.
Rebinding can add an authenticator on a controlled new device, but it must not be treated as revoking the old device: the old authenticator may still produce valid codes. If the old device is lost or may be compromised, promptly contact an administrator under the organization's account-security incident process. Do not rely on rebinding alone to conclude that the risk has been removed.
Account setting after binding in the personal center: Completing Add or Rebind in the personal center also enables security authentication for the current account, even when the global requirement is already enabled. If the global switch is later disabled, this account may still require a code because of its own setting; check the account state under organizational procedures. First-time binding prompted during sign-in is a separate flow and does not by itself establish the account-level switch state.
Disabling and effects
To disable the global switch, turn it off in Authentication Security, confirm the dialog and check the save result. Removing the global requirement reduces protection for the affected sign-in flow; obtain organizational authorization and assess the impact first.
Disabling the global switch does not mean that every account stops requiring two-factor authentication. An account with its own security authentication enabled may still need a code. While the global requirement is enabled, the personal-center security switch cannot be individually turned off; an appropriately authorized administrator should handle changes under organizational procedures.
After changing the setting, test actual sign-in with a controlled account. Do not assume that authenticator binding data was deleted or that every existing session was immediately invalidated.
Troubleshooting
- Cannot change the global switch: Check platform-setting modification permission, connectivity and save messages. Resolve loading or saving failures, then reopen the page to confirm its state.
- The code is rejected after scanning: Confirm that the authenticator entry belongs to the current account and the code is current; check device time and network connectivity. Follow organizational procedures after repeated failures rather than trying indefinitely and potentially triggering sign-in protection.
- No QR code or binding cannot be completed during sign-in: Return to the sign-in page and start again, checking the network and page messages. Contact your administrator or support if the issue persists; do not send them the QR code or verification code.
- Loading or binding fails in the signed-in Personal Center: Check connectivity and the account's platform-settings viewing permission. Reading the QR code also requires viewing permission; confirming the binding requires the corresponding modification permission. Ask an authorized administrator to review access under your organization's approval and least-privilege procedures rather than broadly expanding permissions. This flow differs from first-time binding during sign-in.
- Authenticator device replaced or lost: If you can still sign in, use the personal-center rebind action on the new device and verify sign-in with its code. If unable to sign in, contact an administrator authorized to handle account recovery. Recovery depends on the organization's configuration; do not assume self-service reset or backup codes exist. Rebinding alone does not revoke the old device.
- A code is still required after disabling the global switch: Check whether security authentication remains enabled for the account itself. Decide whether to retain the account-level requirement under organizational authorization; do not disable other accounts' security settings casually to troubleshoot.
Updated