--- title: "Multi-factor authentication (MFA)" slug: "multi-factor-authentication-mfa" tags: ["Explainer", "How-to", "Site Administrator", "Totara Platform"] updated: 2026-08-13T16:01:14Z published: 2026-08-13T16:01:14Z canonical: "totara.help/multi-factor-authentication-mfa" --- > ## Documentation Index > Fetch the complete documentation index at: https://totara.help/llms.txt > Use this file to discover all available pages before exploring further. # Multi-factor authentication (MFA) Multi-factor authentication (MFA) is a multi-step login process that helps to protect users' accounts on your Totara site by adding an extra layer of security. Totara's MFA requires users to use an authenticator app in addition to their password to log in. By combining an authenticator app with the password system, MFA makes it harder for someone to access a user’s account and compromise your Totara site, even if they are able to obtain or guess a user’s password. This helps to keep your site, as well as users' personal information, safe. [Embedded content](https://www.youtube.com/embed/MoCwklNxSaA) See the [MFA developer documentation](https://totara.atlassian.net/wiki/spaces/DEV/pages/128090139/Multi-factor+authentication) for more information. ## Enable MFA To enable MFA on your site, follow these steps: 1. Go to *Quick-access menu > Plugins > Multi-factor authentication > Manage multi-factor* *authentication* *(admin/settings.php?section=mfa_settings).* 2. Click the closed eye icon (![](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-5X1VVNWA.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D)) next to **Authenticator app**. 3. The eye icon should now appear open (![](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-IBJ31K5B.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D)), indicating that the **Authenticator app** is enabled. ![Multi-factor authentication management page displaying available authentication factors with enable controls.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-X2L85QFE.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D) ## Security key The **Security key** option allows users to sign in using a physical device, such as a USB or Bluetooth key, instead of only entering a password. When this option is enabled, users can register a compatible WebAuth security key with their account. During sign-in, they confirm their identity by touching or activating the registered device. Security keys provide a simple and secure way to confirm a user’s identity and help protect accounts from unauthorised access. To enable the **Security key** option: 1. Go to *Quick-access menu > Plugins > Multi-factor authentication > Manage multi-factor* *authentication* *(admin/settings.php?section=mfa_settings).* 2. Click the closed eye icon (![](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-5X1VVNWA.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D)) next to **Security key**. 3. The eye icon should now appear open (![](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-IBJ31K5B.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D)), indicating that the **Security key** is enabled. ## MFA rules **Multi-factor authentication rules** define which users are required to set up multi-factor authentication and when that requirement applies. This ensures stronger account security and can be applied to specific user groups. To set up **Multi-factor authentication rules**: 1. Go to *Quick-access menu > Plugins > Multi-factor authentication > Multi-factor authentication* *rules**. (mfa/rules/)* 2. Click **Create**. 3. Add a name for your rule (mandatory field). 4. Select a date for the **MFA is required from** setting. This rule will only be enforced on or after this date. Before this date, matched users will still be prompted to set up MFA, but will have the option to temporarily skip setup and log in as normal. If the **MFA required from** date has passed, the user cannot skip it and will be required to set up their MFA. 5. From the **Applies to** option, select which users the rule applies to: - **All users** - **Any of the following** 6. If you select to apply the rule to **Any of the following**, you can then select: - **Audiences**: Click **Add audience** and from the **B****rowse all** tab in the pop-up, select one or multiple audiences from the list and click **Add** - **Roles**: From the dropdown menu, select one or multiple roles who will be required to set up multi-factor authentication - **Authentication method**: From the dropdown menu, select one or multiple authentication methods who will be required to set up multi-factor authentication 7. Click **Submit**. ![Screenshot of the Create rule page showing fields to name the rule, set the MFA start date, select user groups or roles, and choose authentication methods, with Submit and Cancel buttons.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-WMCKAGKW.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D) From the **Multi-factor authentication rules** page you can edit or delete any rules. Select the three dots (![](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-Z6YLFYZ2.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D)) for a rule, then select either **Edit** or **Delete**. ## Set up MFA for your account You can configure MFA for your account by following these steps, either: 1. When a you first log in after MFA is enabled, you will be prompted to set up multi-factor authentication. - When prompted at login, click on **Authenticator** **app**. ![Screenshot of the Set up multi-factor authentication page prompting users to add an additional factor, with an option to use an Authenticator app and links to log out or skip setup.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-HZNQKUIX.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D) - Or, when you are logged in: - Go to the *User menu* (your name in the top-right corner) *> Preferences > Manage multi-factor authentication*. - Click **Add factor**. ![Screenshot of the Preferences page showing user account options including Edit profile, Change password, and Manage multi-factor authentication.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-VR9U4QB0.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D) You can then follow these steps to set up your MFA: 1. You need to download an authenticator app such as Google or Microsoft Authenticator. Open the app on your mobile device and scan the QR code displayed on the **Add an authentication app** page in Totara. Alternatively you can manually enter the code into the authentication app which is displayed on the **Add an authentication app** page. ![Screenshot of the Add an authenticator app page showing a QR code, a blurred setup key, and a field to enter a 6-digit code generated by an authenticator app.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-HJ49M0UB.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D) 2. In Totara, enter the six-digit code provided by the authenticator app. 3. Click **Save**. ## Log in with MFA enabled Once you have set up MFA for your Totara account, you can log in by following these steps: 1. Go to your Totara site. 2. Enter your Username and Password, then click **Login**. 3. If an authenticator app is configured, a verification screen appears prompting for a six-digit code. 4. If a security key is configured, the user is prompted to insert or activate the registered device and confirm the sign-in request. 5. Once the required verification is successfully completed, the user is logged in and the Totara dashboard loads as normal. ## Multi-factor authentication notifications You can configure notifications for [trigger events related to multi-factor authentication](/totara-20/docs/multi-factor-authentication-notification-triggers), and add [placeholders](/totara-20/docs/multi-factor-authentication-notification-placeholders) to those notifications. By default there are notifications sent to a user when an MFA factor for their account is created or deleted. ## Reporting You can [create a user report](/totara-20/docs/create-a-user-report) to view users with MFA enabled. Within the **User** report source you can add a **Has MFA enabled** column and filter. This will give the report a column with **Yes** or **No** data. ![Screenshot of the user search page showing filters for User’s Fullname and MFA status, with a results table listing users, usernames, last login, and MFA enabled status.](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/image-R6171DZW.png?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D) ## Restoring access to an account with MFA In the event that you are locked out of your Site Administrator account with MFA enabled (e.g. because you have lost the device with the authenticator app), another Site Administrator can revoke your registered MFA factor on the **Manage user login** page. To perform this action, the logged-in user needs to have the **moodle/user:managelogin** capability. 1. Go to *Quick-access menu > Users* and browse for the admin user whose MFA you need to revoke. 2. Click on the user's name to go to their profile. 3. Click **Manage user login**. 4. Under the **Action** heading, select **Reset MFA**. 5. Click **Update** to revoke the admin user's registered MFA factor. Following this action, the user will need to complete the MFA registration process again. A developer can also do this on your behalf using CLI. Please see the [developer documentation](https://totara.atlassian.net/wiki/spaces/DEV/pages/128090139/Multi-factor+authentication#Revoking-registered-user-factor-via-CLI) for more information on how to do this. ![Course badge](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/course-badge_site-level-user-management(1).svg?sv=2026-02-06&spr=https&st=2026-10-29T13%3A06%3A27Z&se=2026-10-29T14%3A06%3A27Z&sr=c&sp=r&sig=aZBnQfLgAscgiRDBdypPBWkbmEn3tvlMX7LG3AsL68k%3D)Why not visit the Totara Academy for our latest course on [Site-level user management](https://totara.community/mod/page/view.php?id=22033) in Totara. Here you can learn more about user management, see best practice, and give it a go yourself. Join the [Totara Community](https://totara.community/) for more resources to help you get the most out of Totara. © Copyright 2026 Totara Learning Solutions. All rights reserved.