---
title: "Enforce two-factor authentication"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/access/sign-in/two-factor-authentication/
type: task
application: sso
last_updated: 2026-12-03
commit: 8d233372fa05
---


Enforce two-factor authentication so that users who sign in with a Servicely password also confirm with a passkey or an authenticator app. It covers local accounts only. Single sign-on and LDAP users rely on their identity provider.

## Before you begin

- You need the `administrator` role.
- Switch to the Administration workspace with the **Workspace** selector at the foot of the menu.
- Decide who must use it: nobody, holders of `administrator`, or every local account. On a new instance it is holders of `administrator`.
- Tell the users before you save. Each needs a device with a passkey, or an authenticator app such as Google Authenticator or Microsoft Authenticator.

## Steps

<Steps>
  <Step>
    Go to **Access & security → Security → Security settings**.

    <Image src="asset:screenshots/admin/access-sign-in-security-settings/security-settings-menu.png">The Security settings item under Security in the Access & security menu.</Image>
  </Step>
  <Step>
    Select the **Two-factor** tab.

    <Image src="asset:screenshots/admin/access-sign-in-two-factor-authentication/security-settings-two-factor.png">The Two-factor tab of Security settings with Require two-factor authentication and Administrators only.</Image>
  </Step>
  <Step>
    Set **Require two-factor authentication** and **Administrators only** for the users you chose.

    <!-- code: servicely-core LoginServiceImpl.is2FAEnforced, 2027.1.10 -->
    | Who must use it | Require two-factor authentication | Administrators only |
    | --- | --- | --- |
    | Every local account | Yes | Yes or No |
    | Holders of `administrator` | No | Yes |
    | Nobody | No | No |
  </Step>
  <Step>
    Select **Save**.
  </Step>
</Steps>

## Result

At their next sign-in, each user you chose enters their password and then sets up a passkey or an authenticator app. From then on Servicely asks for that factor after the password. The user has 4 minutes and 3 attempts to confirm, and a third wrong attempt counts as a failed sign-in. Users add, rename and remove their own factors under **Sign-in methods** in the user menu.

## Variations

### Deactivate a user's lost factor

A user who loses the device that holds their only factor cannot sign in. Deactivate the factor so that they set up a new one at their next sign-in.

<Steps>
  <Step>
    Go to **Access & security → Authentication → User Second Authentication Factors**.
  </Step>
  <Step>
    Open the user's factor.
  </Step>
  <Step>
    Select **Deactivate**.
  </Step>
  <Step>
    Enter a reason in the "Deactivate authentication factor" dialog and confirm. Servicely shows "Authentication factor deactivated."
  </Step>
</Steps>

## Related

- [Set up two-factor authentication](page:end-user/employees/set-up-two-factor-authentication)
- [Security and upload settings](page:access/sign-in/security-and-upload-settings)
- [Change security settings](page:access/sign-in/security-settings)
- [Set up single sign-on with Microsoft Entra ID](page:access/sign-in/sso-microsoft-entra-id)
