# Security: two-factor sign-in

Require a code from an authenticator app at sign-in, set up your own, and help someone who lost their phone.

A password alone can be guessed, reused or stolen. **Two-factor sign-in** (also called MFA, multi-factor authentication) adds a second step: after the password, a 6-digit code from an app on your phone. Someone who has your password but not your phone still can't get in. You can ask everyone in your workspace to use it.

[Open Security now](/tenant/?open=settings/security)

## Require it for everyone

1. Open **System settings**, then **Security**.
   ![Open Security](files/5dbea556-9266-482f-bddc-acaab6b9b935/two-factor-sign-in-20261108-011437.webm#t=3.7,12.0)
2. Tick **Require two-factor authentication for all users**. It saves as soon as you tick it.
   ![Require two-factor authentication](files/5dbea556-9266-482f-bddc-acaab6b9b935/two-factor-sign-in-20261108-011437.webm#t=12.0,15.8)

From then on, anyone without an authenticator is walked through setting one up at their next sign-in, and can't use the workspace until they finish. Sessions already open carry on until they normally end. Untick it to make two-factor optional again: people who already set it up are still asked for a code.

> **Set yours up first.** You're a user too. If you haven't set up an authenticator, Security reminds you, and with the requirement on you'll be asked at your next sign-in.

## Set up your own authenticator

1. Click your name at the top right, then **My Profile**. Scroll to **Two-factor sign-in**.
2. Click **Set up authenticator**.
3. Scan the code with an authenticator app (Google Authenticator, Microsoft Authenticator, 1Password, Authy and others). Can't scan? Click **Enter the key manually**.
4. Type the 6-digit code the app shows.
5. Save your **recovery codes** somewhere safe, then click **I've saved my recovery codes**. Each one signs you in once if you lose your phone.

Next time you sign in, enter your password, then the 6-digit code from the app (or one of your recovery codes).

## When someone loses their phone

1. Open **System settings**, then **Users and roles**, and click the **Users** tab.
2. Click the person's card. On **Details**, under **Two-factor authentication**, click **Reset authenticator…**, then **Yes, reset authenticator**.

They set up a new authenticator at their next sign-in if your workspace requires it, or sign in with their password alone until they choose to. If their login is shared with other workspaces, the authenticator is theirs and only they can change it.

## Good to know

- **New recovery codes:** in **My Profile**, under **Two-factor sign-in**, **New recovery codes…** replaces all of them. The old ones stop working.
- **Removing your own authenticator** needs your password and a current code, and isn't possible while your workspace requires two-factor sign-in.
- **CLI and script access tokens** are separate credentials and aren't affected.
- **Only Workspace Admins** can change the requirement or reset someone's authenticator.


Source: https://datavisions.ai/docs/system-settings/security/security-two-factor-sign-in
