docs/main/administration-guide/onboard/sso-saml-faq.mdx
See the encryption options documentation for details on what encryption methods Mattermost supports for SAML.
Alternatively, you can use an Id attribute instead of email to bind the user. We recommend choosing an ID that is unique and will not change over time.
Configuring with an Id attribute allows you to reuse an email address for a new user without the old user's information being exposed. For instance, if a user with an email address [email protected] was once an employee, a new employee named Joe Smith can use the same email. This configuration is also useful when a user's name changes and their email needs to be updated.
This process was designed with backwards compatibility to email binding. Here is the process applied to new account creations and to accounts logging in after the configuration:
Existing accounts won't update until they log in to the server.
</Note><attribute> attribute is missing"?A login failure with the error SAML login was unsuccessful because one of the attributes is incorrect. Please contact your System Administrator. — accompanied in the server logs by a detail such as email attribute is missing or name attribute is missing — means the assertion from your Identity Provider (IdP) did not contain an attribute whose name exactly matches what you configured in the Mattermost SAML attribute settings.
Mattermost matches each attribute by its full Name (or FriendlyName) as it appears in the assertion, character-for-character. The named attribute in the error message is the value you entered in Mattermost that could not be found.
This most often happens because the IdP sends attributes under a namespace. For example, Microsoft Entra ID emits its built-in claims under http://schemas.xmlsoap.org/ws/2005/05/identity/claims/ by default, so an attribute that looks like email in the Entra ID admin UI is actually sent in the assertion as http://schemas.xmlsoap.org/ws/2005/05/identity/claims/email. Entering only email in Mattermost will not match.
To resolve this:
Name attribute of each <Attribute> element in the <AttributeStatement>.Name value from the assertion — including any namespace prefix — or reconfigure the IdP to emit the claim under the short name you want to use in Mattermost.Yes. IWA is supported on the browser, with support added to iOS and Android mobile apps in Q2/2019 (mobile apps v1.18 and later).
However, IWA is not supported on the Mattermost Desktop Apps due to a limitation in Electron. As a workaround you may create a browser desktop shortcut for quick access to Mattermost, just like a Desktop App.
Yes, but this relies on AD/LDAP to do so. Currently, we do not support SCIM. See "How do I deactivate users?" for more information.
See the mmctl user migrate-auth command documentation for details.
OAuth 2.0 was primarily intended for delegated authorization, where an app is authorized to access resources, such as Google contact list. It doesn’t deal with authentication.
OpenID Connect is built on top of OAuth 2.0, which supports authentication and thus direct SSO.
SAML is like OpenID Connect, except typically used in enterprise settings. OpenID Connect is more common in consumer websites and web/mobile apps.
Learn more at https://hackernoon.com/demystifying-oauth-2-0-and-openid-connect-and-saml-12aa4cf9fdba.