Mattermost SSO with Okta (SAML)
Configure Mattermost as an Okta SAML app, map a stable account ID and test membership and account linking before rollout.
Last updated
On this page (5)
Mattermost · Okta · SAML
Before you start
Mattermost documents SAML for Entry, Professional, Enterprise and Enterprise Advanced. Use an Okta admin account, a public HTTPS Mattermost Site URL, and an independent recovery route for your Mattermost admin. Inventory existing sign-in methods before you change them.
Configure sign-in
- Create a SAML 2.0 app in Okta. Use
https://<mattermost-host>/login/sso/samlas the Single sign-on URL and match Audience URI (SP Entity ID) to the Mattermost service-provider identifier. Assign only pilot users at first. - Add attribute statements for the Mattermost email and username and an ID statement mapped to Okta
user.id. Copy each outgoing statement name exactly. Enter the matching names in System Console > Authentication > SAML 2.0, along with Okta’s IdP metadata values and signing certificate as described in Mattermost’s guide. - Test an existing user’s documented account-conversion path before requiring SAML. If Mattermost also syncs LDAP, confirm entitlement and choose compatible identity fields. An Okta
user.idis not automatically the same value as an Active Directory object ID.
Verify the result
- An assigned user signs in to the expected Mattermost account and retains channel and team memberships. A user without assignment cannot enter. Check that renaming the pilot’s email does not create another account once the ID has been linked.
- Test what app removal does to an active web, desktop and mobile session. Record separate app-side offboarding steps where needed; SAML alone does not remove previously issued sessions or manage users.
