Two Factor Authentication Configuration

Two Factor Authentication Configuration

Prev Next

Rocket.Chat’s two-factor authentication (2FA) feature adds an extra layer of security by requiring users to verify their identity with two forms of authentication before accessing their accounts. When 2FA is enabled, users must enter their username and password, followed by a one-time code generated by an authenticator app or sent to their registered email. Each code is valid for a single login and cannot be reused.

Only workspace administrators can configure two-factor authentication (2FA).

To configure 2FA in your workspace, go to Manage → Workspace → Settings → Accounts → Two Factor Authentication. You can adjust the following options based on your security needs:

Notes:

  • By default, 2FA is enabled via email for users who sign up with an email address. For setup instructions, see the 2FA user guide.

  • To reset a user’s TOTP 2FA, see the Managing users documentation.

  • On the premium plans, you can enforce 2FA for specific roles. Go to Manage > Workspace > Permissions, then edit the role to enable enforcement.

  • Users signing in through an OAuth provider, such as Google, GitHub, or GitLab, are prompted for a one-time code if they have 2FA enabled on their account.

2FA for OAuth logins

If the Modern OAuth Flow is enabled in your workspace under Manage → Workspace → Settings → OAuth, users who have two-factor authentication enabled via email or TOTP are asked to complete the 2FA challenge even when they sign in with an OAuth provider such as Google or GitHub. See the Modern OAuth Flow user guide for more details.