Multi-factor authentication (MFA) is a secondary layer of user authentication applied to your Mattermost server.
With MFA enabled, users need to provide a secure one-time code in addition to their username and password in order to log in to Mattermost. MFA is useful in organizations that have specific security and compliance policies. It can also be used in organizations where Mattermost is not behind a firewall and doesn’t have access to existing MFA infrastructure.
Mattermost offers a smartphone-based MFA check in addition to email-password or Active Directory/LDAP authentication to sign in to the Mattermost server.
Supported smartphones include iOS, Android, Blackberry, and Windows Phone devices that are able to install Google Authenticator. Other than requiring internet access to download and install Google Authenticator, the phone used for Mattermost MFA does not require internet access.
As the MFA implementation relies on Time-based One-time passwords (TOTP) ensure that your server system time is accurate. If there is a discrepancy, users may not be able to log in successfully.
This option is enabled by the System Admin by going to System Console > Authentication > MFA, then setting Enable Multi-factor Authentication to true.
Once enabled, users can opt to use MFA on their account in the Account Settings menu under Security > Multi-factor Authentication.
System Admins can disable this option by going to System Console > Authentication > MFA. When Enable Multi-factor Authentication is set to false, users can’t opt to use or disable MFA on their account in Account Settings > Security > Multi-factor Authentication.
MFA can be disabled for user accounts using the API. See the Mattermost API Reference for details.
Available in legacy Mattermost Enterprise Edition E10
This option can be enabled by the System Admin by going to System Console > Authentication > MFA, then setting Enforce Multi-factor Authentication to true.
When MFA enforcement is set to true, users with email or LDAP authentication who don’t have MFA set up will be directed to the MFA setup page when they log in to Mattermost. They will not be able to access the site until MFA setup is complete. Any new users will be required to set up MFA during the sign up process.
Users will not be able to remove MFA from their account while enforcement is on.
Turning on MFA enforcement prevents users from accessing the site until set up is complete. We recommended that you turn on enforcement during non-peak hours when people are less likely to be using Mattermost.