---
title: "Authentication configuration settings"
---
import useBaseUrl from '@docusaurus/useBaseUrl';
menu, selecting **System Console**, and then selecting **Authentication**:
- [Signup](#signup)
- [Email](#email)
- [Password](#password)
- [MFA](#mfa)
- [AD/LDAP](#adldap)
- [SAML 2.0](#saml-20)
- [OAuth 2.0](#oauth-20)
- [OpenID Connect](#openid-connect)
- [Guest Access](#guest-access)
|
|
This setting limits the email address domains that can be used to create a new account or team. | - System Config path: Authentication > Signup | You must set Require Email Verification | - config.json setting: TeamSettings > RestrictCreationToDomains to true for the restriction to function. This setting only affects email login. | - Environment variable: MM_TEAMSETTINGS_RESTRICTCREATIONTODOMAINS | |
|
|
|
|
This button invalidates email invitations that have not been accepted (by default, invitations expire after 48 hours). This option has no |
|
|
|
|
|
|
|
|
|
This setting determines the minimum number of characters in passwords. It must be a whole number greater than or equal to 5 and less than or equal to 72. Numerical input. Default is 5. |
|
This setting controls password character requirements. By checking the corresponding box, passwords must contain:
The error message previewed in the System Console will appear if the user attempts to set an invalid password. The default for all boxes is unchecked. The default for all settings in |
|
This setting determines the number of failed sign-in attempts a user can make before being locked out and required to go through a password reset by email. Numerical input. Default is 10. |
|
|
|
|
|
|
|
|
|
This setting will display placeholder text in the login field of the sign-in page. This text can remind users to sign-in with their AD/LDAP credentials. String input. Default is |
|
This is the domain name or IP address of the AD/LDAP server. String input. |
|
This is the port Mattermost uses to connect to the AD/LDAP server. Numerical input. Default is 389. |
|
This is the username for the account Mattermost utilizes to perform an AD/LDAP search. This should be an account specific to Mattermost. Limit the permissions of the account to read-only access to the portion of the AD/LDAP tree specified in the Base DN setting. When using Active Directory, Bind Username should specify domain in String input. |
|
This is the password for the username given in the Bind Username setting. String input. |
|
This setting controls the type of security Mattermost uses to connect to the AD/LDAP server, with these options:
|
|
|
|
Use this setting to upload the private key file from your LDAP authentication provider, if TLS client certificates are the primary authentication mechanism. String input. |
|
Use this setting to upload the public TLS certificate from your LDAP authentication provider, if TLS client certificates are the primary authentication mechanism. String input. |
|
This setting determines the number of failed sign-in attempts a user can make before being locked out and required to go through a password reset by email. You can unlock the account in System Console on the users page. Setting this value lower than your LDAP maximum login attempts ensures that the users won't be locked out of your LDAP server because of failed login attempts in Mattermost. Numerical input. Default is 10. |
|
This is the Base Distinguished Name of the location in the AD/LDAP tree where Mattermost will start searching for users. String input. |
|
This setting accepts a general syntax AD/LDAP filter that is applied when searching for user objects. Only the users selected by the query can access Mattermost. For example, to filter out disabled users, the filter is: To filter by group membership, determine the String input. |
|
This setting accepts a general syntax AD/LDAP filter that is applied when searching for group objects. Only the groups selected by the query can access Mattermost. String input. Default is |
|
|
|
This setting accepts an AD/LDAP filter that designates the selected users as system admins. Users are promoted to this role on their next AD/LDAP sign-in. This filter isn't evaluated during scheduled AD/LDAP synchronization, and it doesn't apply to users who authenticate with SAML, even when Enable Synchronizing SAML Accounts With AD/LDAP is enabled. Use the SAML Admin Attribute setting to designate system admins for SAML-authenticated users. If the Admin Filter is removed, users who are currently logged in retain their Admin role until their next sign-in. String input. |
|
String input. | | |
This is the attribute in the AD/LDAP server that is serves as a unique user identifier in Mattermost. The attribute should have a unique value that does not change, such as String input. |
|
This is the attribute in the AD/LDAP server that is used for signing-in to Mattermost. This is normally the same as the Username Attribute. If your team uses String input. |
|
This is the attribute in the AD/LDAP server that populates the username field in Mattermost. This attribute identifies users in the UI. For example, if a Username Attribute is set to This is normally the same as the Login ID Attribute, but it can be mapped to a different attribute. String input. |
|
This is the attribute in AD/LDAP server that populates the email address field in Mattermost. Email notifications are sent to this address. The address may be seen by other Mattermost users depending on privacy settings. String input. |
|
When not set, users can edit their first name in their | | profile settings. | | | String input. | | |
When not set, users can edit their last name as part of their | | profile settings. | | | | String input. | | |
When not set, users can edit their nickname as part of their | | profile settings. | | | String input. | | |
When not set, users can edit their position as part of their | | profile settings. | | | String input. | | |
This is the attribute in the AD/LDAP server that syncs and locks the profile picture in Mattermost. The image is updated when users sign-in, not when Mattermost syncs with the AD/LDAP server. The image is not updated if the Mattermost image already matches the AD/LDAP image. String input. |
|
This is the AD/LDAP Group Display name attribute that populates the Mattermost group name field. String input. |
|
This is an AD/LDAP Group ID attribute that sets a unique identifier for groups. This should be a value that does not change, such as String input. |
|
This value determines how often Mattermost syncs with the AD/LDAP server by setting the number of minutes between each sync. Syncing with the AD/LDAP server will update Mattermost accounts to match any changes made to AD/LDAP attributes. Disabled AD/LDAP accounts become deactivated users in Mattermost, and any active sessions are revoked. Use the AD/LDAP Synchronize Now button to immediately revoke a session after disabling an AD/LDAP account. Numerical input. Default is 60. |
|
This setting paginates the results of AD/LDAP server queries. Use this setting if your AD/LDAP server has a page size limit. The recommended setting is 1500. This is the default AD/LDAP A page size of 0 disables pagination of results. Numerical input. Default is 0. |
|
This setting determines the timeout period, in seconds, for AD/LDAP queries. Increase this value to avoid timeout errors when querying a slow server. Numerical input. Default is 60. |
|
Use this button to immediately sync with the AD/LDAP server. The status of the sync is displayed in the table underneath the button (see the figure below). Following a manual sync, the next sync will occur after the time set in the Synchronization Interval. |
|
Enable this setting to re-add members of the LDAP group that were previously removed from group-synchronized teams or channels during LDAP synchronization.
|
|
|
|
|
|
|
This setting is only available when SAML authentication is enabled and AD/LDAP synchronization is enabled. |
|
This setting is the URL from which Mattermost requests setup metadata from the provider. String input. |
|
This setting is the URL where Mattermost sends a SAML request to start the login sequence. String input. |
|
This setting is the issuer URL for the Identity Provider for SAML requests. String input. |
|
The public authentication certificate issued by your Identity Provider. String input. |
|
|
|
Enter the URL of your Mattermost server, followed by Use HTTP or HTTPS depending on the configuration of the server. This setting is also known as the Assertion Consumer Service URL. |
|
This setting is the unique identifier for the Service Provider, which in most cases is the same as the Service Provider Login URL. In ADFS, this must match the Relying Party Identifier. String input. |
|
|
|
This setting stores the private key used to decrypt SAML Assertions from the Identity Provider. String input. |
|
This setting stores the certificate file used to sign a SAML request to the Identity Provider for a SAML login when Mattermost is initiating the login as the Service Provider. String input. |
|
|
|
This setting determines the signature algorithm used to sign the SAML request. Options are: String input. From Mattermost v11, the default signature algorithm has been updated from |
|
This setting determines the canonicalization algorithm. With these options:
String input. |
|
This setting determines the attribute from the SAML Assertion that populates the user email address field in Mattermost. Notifications are sent to this email address. This email address may be visible to other users, depending on how the system admin has set-up user privacy. String input. |
|
This setting determines the SAML Assertion attribute that populates the username field in the Mattermost UI. This attribute identifies users in the UI. For example, if a username is set to String input. |
|
(Optional) This setting determines the SAML Assertion attribute used to bind users from SAML to users in Mattermost. String input. |
|
String input. | | |
|
|
(Optional) This setting determines the attribute in the SAML Assertion for designating system admins. Users are automatically promoted to this role when logging in to Mattermost. If the Admin attribute is removed, users that are logged in retain Admin status. The role is revoked only when users log out. String input. |
|
(Optional) This setting determines the SAML Assertion attribute that populates the first name of users in Mattermost. String input. |
|
(Optional) This setting determines the SAML Assertion attribute that populates the last name of users in Mattermost. String input. |
|
(Optional) This setting determines the SAML Assertion attribute that populates the nickname of users in Mattermost. String input. |
|
(Optional) This setting determines the SAML Assertion attribute that populates the position (job title or role at company) of users in Mattermost. String input. |
|
(Optional) This setting determines the SAML Assertion attribute that populates the language preference of users in Mattermost. String input. |
|
(Optional) The text that appears in the login button on the sign-in page. String input. Default is SAML. |
|
Use this setting to enable OAuth and specify the service provider, with these options:
|
|
|
|
This setting holds the OAuth Application ID from GitLab. Generate the ID by these steps:
String input. |
|
This setting holds the OAuth Application Secret Key from GitLab. The key is generated at the same time as the Application ID (see GitLab OAuth 2.0 Application ID). Enter the key provided by GitLab in the Mattermost System Console field, String input. |
|
This setting holds the URL of your GitLab instance, e.g. https://example.com:3000. Use http:// if SSL is not enabled on your GitLab instance. |
|
This setting holds the URL of your GitLab User API endpoint, e.g. Enter the URL in the Mattermost System Console field, String input. |
|
This setting holds the URL of your GitLab Auth endpoint, e.g. Enter the URL in the Mattermost System Console field, String input. |
|
This setting holds the URL of your GitLab OAuth Token endpoint, e.g. Enter the URL in the Mattermost System Console field, String input. |
|
See Google Single Sign-On implementation instructions. | |
String input. | | |
This setting stores the OAuth Client Secret from Google. The Secret is generated at the same time as the Client ID. String input. |
|
We recommend String input. |
|
We recommend String input. |
|
We recommend String input. |
|
|
|
This setting holds the Application ID generated when configuring Entra ID as a Single Sign-On service through the Microsoft Azure Portal. String input. |
|
This setting holds the Application Secret Password generated when configuring Entra ID as a Single Sign-On service through the Microsoft Azure Portal. String input. |
|
This setting holds the Directory (tenant) ID set for Mattermost through the Azure Portal. String input. |
|
We recommend String input. |
|
We recommend String input. |
|
We recommend String input. |
|
Use this setting to enable OpenID Connect, with these options:
|
|
|
|
This setting stores the URL of your GitLab instance, e.g. https://example.com:3000. String input. |
|
This setting is prepopulated with the Discovery Endpoint for GitLab OpenID Connect. String input. Default is |
|
This setting stores the Application ID generated by GitLab. String input. |
|
This setting stores the Application Secret Key generated by GitLab. String input. |
|
|
See Google Single Sign-On implementation instructions. | |
String input. Default is |
String input. | | |
String input. | | |
|
See Entra ID Single Sign-On implementation instructions. | |
String input. | | |
String input. Default is |
String input. | | |
String input. | | |
|
See OpenID Connect Single Sign-On implementation instructions. | |
This setting is the text for the OpenID login button. String input. |
|
This setting is the color of the OpenID login button. Use a hex code with a #-sign before the code, for example String input. |
|
This setting stores the Discovery Endpoint URL from the OpenID provider. | - System Config path: Authentication > OpenID Connect | The URL should be in the format of https://myopenid.provider.com/{my_organization}/ | -config.jsonsetting:OpenIdSettings>DiscoveryEndpoint| .well-known/openid-configuration. | - Environment variable: MM_OPENIDSETTINGS_DISCOVERYENDPOINT | | | See OpenID Connect Single Sign-On | implementation instructions. | | | | String input. | | |
String input. | | |
String input. | | |
|
|
|
|
Use this setting to restrict the creation of guest accounts. When set, guest accounts require a verified email address from one of the listed domains. String input of one or more domains, separated by commas. |
|
|
|
|
|