> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Multi-factor authentication

> Learn about how to enable and disable multi-factor authentication in Firebolt.

Enable multi-factor authentication (MFA) as an additional layer of security to protect data that is accessible through Firebolt. With MFA enabled, users must authenticate with a one-time code generated by their mobile device upon login. MFA can be enabled per login.

> [!NOTE]
>
> Enabling MFA for a login requires the org\_admin role.

## Enable MFA for a login

### SQL

To enable MFA for a login using SQL, use the [ALTER LOGIN](https://docs.firebolt.io/managed-service/organization/commands/alter-login.md) statement. For example:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
ALTER LOGIN "alex@acme.com" SET IS_MFA_ENABLED = TRUE;
```

Multi-factor authentication can also be set for new logins, with the [CREATE LOGIN](https://docs.firebolt.io/managed-service/organization/commands/create-login.md) command. For example:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
CREATE LOGIN "betsy@acme.com" SET IS_MFA_ENABLED = TRUE;
```

### UI

To enable MFA for a login in the UI:

![Configure > MFA](https://mintcdn.com/firebolt/Hc-k8wiP5Rcc9bZ2/assets/images/mfamanagement.png?fit=max\&auto=format\&n=Hc-k8wiP5Rcc9bZ2\&q=85\&s=c22ad0060c3cac2aae547b29306fa04f)

1. Click **Configure** to open the configure space, then choose **Logins** from the menu.

2. Search for the relevant login using the top search filters or by scrolling through the logins list. Toggle on **Is MFA enabled**.

![Is MFA enabled](https://mintcdn.com/firebolt/Hc-k8wiP5Rcc9bZ2/assets/images/mfaenabled.png?fit=max\&auto=format\&n=Hc-k8wiP5Rcc9bZ2\&q=85\&s=0e7298cf9e8cd840a11f6eb4548ce0a4)

MFA can also be enabled when creating a login, by toggling **Is MFA enabled** in the **Create login** window:

![Enable MFA](https://mintcdn.com/firebolt/Hc-k8wiP5Rcc9bZ2/assets/images/mfaloginenabled.png?fit=max\&auto=format\&n=Hc-k8wiP5Rcc9bZ2\&q=85\&s=4b000c902887668ef1d96274d063d973)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.