Plugins View all plugins
Resources
Live demo ↗ Request a plugin Sign in feinwerk.io ↗ Get the connector
New

The Feinwerk Connector is now in the Matomo Marketplace. Install it right inside Matomo, no download, no FTP. Read the news · Here is how →

Use cases

Matomo single sign-on through your identity provider, with permissions from IdP groups

Your team signs in to Matomo via SAML with Entra ID, Okta or Keycloak, and permissions come straight from your identity provider's groups.

  • Sign-in via Entra ID, Okta or Keycloak
  • Permissions from your IdP groups
  • Offboarding via SCIM 2.0
How Auth SAML works: sign-in via SSO and permissions from your IdP groups
How Auth SAML works: sign-in via SSO and permissions from your IdP groups

The problem: a second user list next to your company login

Matomo has its own user management with accounts, passwords and per-website permissions, enough for a small team. If you manage access centrally in an identity provider such as Microsoft Entra ID, Okta or Keycloak, that means a second user list maintained by hand. The more websites and teams, the more upkeep.

Matomo alone

  • Another password next to the company login
  • New colleagues wait for access, permissions come on request
  • When someone leaves, someone must remember to lock their Matomo account

With Auth SAML

  • Company login, no separate Matomo password
  • Account and permissions straight from your IdP
  • Deactivated in the IdP, locked in Matomo (optional via SCIM)

How Auth SAML solves it

Auth SAML connects Matomo to your identity provider via SAML 2.0. Your team signs in with their usual company login, and the account is created automatically on first login.

Permissions come from your IdP groups: you define once which group sees which websites with which role (view, write or admin), and Auth SAML syncs them on every login. You manage access in one place only.

Auth SAML: SCIM provisioning of users and groups
Auth SAML: SCIM provisioning of users and groups

Offboarding via SCIM

With optional SCIM 2.0, your IdP reports new, changed and departed people directly to Matomo. Auth SAML locks accounts deactivated in the IdP and revokes the permissions the plugin granted, without anyone having to sign in.

Permissions by attribute

Alternatively, the plugin reads permissions from a dedicated attribute, such as view:1,4;write:2.

Switch without recreating users

Existing accounts are adopted, not duplicated. In the default mode, manually assigned permissions stay untouched, and super users always keep an emergency password login.

Security without a Matomo password

Your team confirms sensitive actions by signing in at the identity provider again, and if you wish Matomo requires multi-factor sign-in there. An audit log records logins and permission changes.

How it works

  1. Copy the SP details. After installation, the Auth SAML admin page shows the SP metadata and ACS URLs.
    Auth SAML: diagnostics of the SAML configuration
    Auth SAML: diagnostics of the SAML configuration
  2. Create an application in your IdP. Set up a SAML application in Entra ID, Okta, Keycloak or another SAML 2.0 provider and release email, display name and groups as attributes.
  3. Add your IdP in Matomo. Enter the IdP metadata URL in the plugin settings. Endpoints and certificates are imported and refreshed daily.
    Auth SAML: identity provider and service provider settings
    Auth SAML: identity provider and service provider settings
  4. Map your groups. Link IdP groups, websites and roles on the admin page.
    Auth SAML: mapping identity provider groups to Matomo permissions
    Auth SAML: mapping identity provider groups to Matomo permissions
  5. Test and switch over. Use the SSO test on the admin page to check which groups and permissions arrive, then try the login with the SSO button and optionally enable Force SSO so the login page sends everyone straight to your IdP.
    Auth SAML: Matomo login with single sign-on
    Auth SAML: Matomo login with single sign-on

Who is Auth SAML for?

Companies running their own Matomo

with access managed centrally in Entra ID, Okta, Keycloak or another SAML 2.0 provider.

IT and security teams

that want offboarding without manual work.

Organisations and agencies

with many websites that grant access by team, brand or client.

Teams with a running installation

that want to introduce SSO without recreating users.

Frequently asked questions

Does the Matomo login work with Microsoft Entra ID (Azure AD)?

Yes. Microsoft Entra ID is the new name of Azure Active Directory. Auth SAML is tested with Entra ID, and group claims as well as automatic provisioning via SCIM are supported. The documentation walks you through the setup step by step.

Does Auth SAML run on Matomo Cloud?

No. Auth SAML needs a self-hosted Matomo 6 or Matomo 5 with PHP 8.1 or newer, because custom plugins cannot be installed on Matomo Cloud.

Can I still sign in with a password?

That is up to you: password login for everyone, for super users only (the default) or for nobody. Super users reach the password form through a break-glass link even when Force SSO is on, as long as password login is not switched off completely.

Can Matomo require multi-factor sign-in?

Yes. If you wish, Auth SAML asks the identity provider for a specific authentication context, such as Microsoft Entra ID's multi-factor sign-in, and refuses logins without it. Matomo's own two-factor prompt is skipped for SSO logins, since the sign-in happens at the identity provider.

The plugin for this

Auth SAML

Auth SAML connects Matomo to your identity provider: SAML 2.0 single sign-on, SCIM 2.0 on- and offboarding and site permissions driven by your IdP groups. For Okta, Microsoft Entra ID, Keycloak and any SAML provider.

More use cases