Auth0 × Metabase

How to build Auth0 dashboards in Metabase

Auth0 is a customer identity platform that handles login, signup, multi-factor authentication, and access management for the applications you build. Metabase is where you turn those security signals into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Auth0 MCP Server and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Auth0 findings into a database so you can build dashboards anyone can read.

Heads up: Metabase connects to databases and warehouses — it does not ship a native Auth0 connector, and a BI warehouse is the wrong home for raw security telemetry. Sync findings, entities, and daily rollups — vulnerabilities, detections, control results, auth summaries — and leave the event firehose in Auth0.

How do you connect Auth0 to Metabase?

Most teams combine both routes: use MCP and CLI uploads for a fast first pass, then move recurring security reporting to a warehouse-backed model.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair the Auth0 MCP Server with the Metabase CLI. Use MCP for live lookups, write a scoped result to CSV, then load it into Metabase as a ready-to-query table and model.

Best for
  • Quick lookups such as "show me login success and failure rate"
  • Loading a Auth0 export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed security reporting
  • Use read-only, minimally scoped credentials — security tools especially
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync Auth0 findings and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.

Best for
  • Auth0 posture reporting leaders and auditors depend on
  • Joining Auth0 data with assets, HR, ticketing, or other security tools
  • Long-run trends for login success and failure rate and signup conversion
Trade-offs
  • You own the refresh schedule and the snapshot cadence
  • Sync findings, entities, and daily rollups — not the raw event firehose
  • Metric definitions must be consistent across tools and teams

What can you analyze from Auth0 data in Metabase?

  • Login success and failure rate — built from log events (authentication events) and the related users, applications, connections data your sync exposes.
  • Signup conversion — built from log events (authentication events) and the related users, applications, connections data your sync exposes.
  • MFA enrollment — built from log events (authentication events) and the related users, applications, connections data your sync exposes.
  • Token and API errors — built from log events (authentication events) and the related users, applications, connections data your sync exposes.
  • Suspicious activity signals — built from log events (authentication events) and the related users, applications, connections data your sync exposes.

Which Auth0 dashboards should you build in Metabase?

For: Identity and IT admins

Authentication overview

Login health across every application.

  • Logins per day by outcome (stacked bar)
  • Failed-login rate (number + trend)
  • Top apps by sign-in volume (bar)
  • Lockouts and password resets (line)
For: Security team

Threat signals

Attack patterns hiding in the auth logs.

  • Failed logins by source IP and ASN (table)
  • Spray patterns — many users, one source (table)
  • New-geo and impossible-travel logins (table)
  • Privileged-account failures (number)
For: IAM program owners

MFA and hygiene

Factor strength and enrollment, honestly measured.

  • MFA adoption by factor type (bar)
  • Users without MFA, by privilege (table)
  • Weak-factor share — SMS vs. phishing-resistant (number)
  • Enrollment trend (line)
For: Compliance partners

Lifecycle and audit

The joiner-mover-leaver record auditors ask for.

  • Deprovisioning lag for departures (table)
  • Dormant accounts with active access (table)
  • Admin-role changes (table)
  • App assignment growth (line)

How do you use the Auth0 MCP Server with the Metabase CLI?

Pair the Auth0 MCP Server with the Metabase CLI for fast, hands-on analysis. MCP is useful for scoped lookups and summarized exports; the Metabase CLI's upload command loads CSV data into Metabase and creates a ready-to-query table and model.

Example workflow

  • Ask the MCP server for a daily summary of log events (authentication events) by application and outcome.
  • Export the result as CSV, keeping stable IDs, severities, statuses, owners, and timestamps.
  • Run mb upload csv to load it into Metabase as a table and model, then build questions and dashboards on top.

Be honest about the limits

  • MCP lookups are excellent for exploration, not scheduled reporting.
  • A CSV upload is a snapshot; refresh it with mb upload replace or move to the pipeline for real history.
  • Daily event rollups are required for failed-login and MFA-adoption trends.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up Auth0 MCP and the Metabase CLI?

Auth0 MCP Serverofficial · beta

Transport
Local server over stdio (npx)
Auth
Device-flow login via npx @auth0/auth0-mcp-server init; supports --read-only
Best for
Live scoped lookup and export

Metabase CLIofficial

Install
npm install -g @metabase/cli
Auth
mb auth login
Load data
mb upload csv --file data.csv
Requires
An uploads database (Admin → Settings → Uploads)
MCPExample MCP client config
{
  "mcpServers": {
    "auth0": {
      "command": "npx",
      "args": ["-y", "@auth0/auth0-mcp-server", "run", "--read-only"]
    }
  }
}

Run npx @auth0/auth0-mcp-server init once to authenticate with a device flow. Keep --read-only for analysis — the full toolset can modify tenant configuration.

TerminalLoad a Auth0 CSV with the Metabase CLI
# Install the Metabase CLI
npm install -g @metabase/cli

# Log in (opens your browser; requires Metabase v62+)
mb auth login --url https://your-metabase.example.com

# Load a log-events-(authentication-events) export — creates a table AND a model
mb upload csv --file auth0-log-events-(authentication-events).csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file auth0-log-events-(authentication-events).csv

Can you generate a Auth0 dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Auth0 MCP Server and the Metabase CLI. It works end to end: if Auth0 tables already exist in Metabase it analyzes those; otherwise it pulls scoped, summarized data over MCP, loads it with mb upload csv, then builds the dashboard and caveats any metric that needs missing history.

Prompt for creating a Auth0 Identity Security Overview dashboard
Create a polished Metabase dashboard for Auth0 identity security analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help security and engineering leaders understand authentication health, failed-login signals, MFA adoption, and lifecycle hygiene from Auth0 data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for auth0 tables and
  models). If durable Auth0 data is already present — synced from a warehouse
  or uploaded earlier — use it and skip to Step 2.
- If nothing is there, pull a scoped, summarized export with the Auth0 MCP Server:
  log events (authentication events), plus users, applications, connections.
  Prefer aggregated or entity-grain views over raw events. Write each result to a
  CSV, then load it with the Metabase CLI — run "mb upload csv --file <export>.csv"
  so each upload creates a table and a ready-to-query model. Use "mb upload replace
  <table-id> --file <export>.csv" to refresh an existing table instead of creating
  duplicates.

Step 2 — Inspect before querying:
Do not assume exact table or column names. Inspect available fields, severities,
statuses, timestamps, and whether snapshots or history exist before creating
duration or trend cards.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Auth0 — it reads a database or CLI-uploaded tables.
- Never try to load raw security telemetry or event firehoses into Metabase; use
  findings, detections, entities, and daily rollups.
- Only compute durations (time to remediate, time to triage, time to detect)
  when the required timestamps exist.
- Exclude test environments and suppressed or accepted-risk items from headline
  cards, and keep them visible in a labeled register instead.
- A single CSV is a point-in-time snapshot: only build trend cards if there is a
  usable date column or multiple periods have been uploaded.

Dashboard title: Auth0 Identity Security Overview

Sections:
1. Executive summary: Logins last 7 days; Failed-login rate; MFA adoption;
   Accounts without MFA; Deprovisioning lag.
2. Authentication: Logins by day and outcome; failure rate by app.
3. Threat signals: Failures by source; spray patterns; new-geo logins.
4. MFA: Adoption by factor type; weak-factor share; enrollment trend.
5. Lifecycle: Departures vs. deactivations; dormant accounts; admin changes.

Filters: Date range, Severity, Status, Team or owner, Environment or asset group.

Output: Build the dashboard if you have permission; otherwise provide the exact
questions, SQL, model definitions, and layout. Include caveats for any metric
that cannot be calculated from the available data.

How do you sync Auth0 data into a database or warehouse?

For dashboards that need history and reliability, land Auth0 findings and metadata in a database first, then connect Metabase to that database.

Connector options

  • Managed ETL — use a connector when one covers the objects you need.
  • Custom pipeline — use the Auth0 Management API for control over fields, snapshot cadence, and refresh schedule.
  • MCP + CSV — use this for quick exploration and one-off slices.

Sync users, clients, and log events with the Airbyte or Fivetran Auth0 connectors, or stream auth events continuously with Auth0 Log Streams to S3, Datadog, or EventBridge. Roll events up to daily grain per application and outcome.

Notes

  • Decide the snapshot cadence first (daily is the norm for security data) — posture trends only exist if you build the history.
  • Land raw entity tables first, then build clean Metabase models on top.
  • Normalize application, outcome, factor-type, event-date, and user-status fields.

How should you model Auth0 data in Metabase?

Core tables

TableGrainKey columns
auth0_log_events_dailyone row per client per event type per dayevent_date, client_id, connection, event_type, outcome, event_count
auth0_usersone row per useruser_id, created_at, last_login, logins_count, mfa_enrolled, blocked
auth0_clientsone row per applicationclient_id, name, app_type, created_at

Modeling advice

  • Build a clean auth_events_daily model with common columns across tools, so multi-source dashboards don't fork definitions.
  • Separate entity tables (assets, users, controls) from findings, events, and daily snapshot tables.
  • Exclude test environments and suppressed or accepted-risk items from headline metrics; keep them in a labeled register instead.
  • Use stable IDs for asset, user, and finding joins; display names change.

Which Auth0 metrics should you track in Metabase?

MetricDefinitionNotes
MFA adoption rateActive users with a strong second factor enrolled.Exclude service accounts; segment by privilege.
Failed login rateFailed authentication attempts over all attempts.Separate user friction from attack traffic.
Mean time to detectHow fast identity attacks surface in the queue.Join auth anomalies to detection records.
Control pass rateIdentity controls passing across compliance frameworks.MFA and offboarding controls live here.

What SQL powers Auth0 dashboards in Metabase?

These assume a cleaned analytical model in a warehouse (PostgreSQL dialect). Adjust table and column names to match your pipeline.

Daily failed-login ratePostgreSQL

From daily auth event rollups.

SELECT
  event_date,
  COALESCE(SUM(event_count) FILTER (WHERE outcome = 'failure'), 0)
    AS failed_logins,
  SUM(event_count) AS total_attempts,
  ROUND(
    100.0 * COALESCE(SUM(event_count) FILTER (WHERE outcome = 'failure'), 0)
    / NULLIF(SUM(event_count), 0), 2
  ) AS failed_login_rate_pct
FROM auth_events_daily
GROUP BY event_date
ORDER BY event_date;
MFA adoption by strongest factorPostgreSQL

Factor mix across active users — strength matters, not just enrollment.

SELECT
  strongest_factor,
  COUNT(*) AS users,
  ROUND(100.0 * COUNT(*) / SUM(COUNT(*)) OVER (), 1) AS share_pct
FROM users
WHERE status = 'active'
  AND NOT is_service_account
GROUP BY strongest_factor
ORDER BY users DESC;
Deprovisioning lag for departuresPostgreSQL

Identity records joined to HR departure dates, trailing 90 days.

SELECT
  u.id,
  u.department,
  h.departed_at,
  u.deactivated_at,
  EXTRACT(EPOCH FROM (u.deactivated_at - h.departed_at)) / 86400
    AS deprovision_lag_days
FROM users u
JOIN hr_departures h ON h.person_id = u.id
WHERE h.departed_at >= CURRENT_DATE - INTERVAL '90 days'
ORDER BY deprovision_lag_days DESC NULLS FIRST;

What are common mistakes when analyzing Auth0 in Metabase?

Syncing the raw security-event firehose into the warehouse.→ Land findings, detections, entities, and daily rollups. Raw telemetry belongs in Auth0 or a security data lake; the warehouse is for trends and joins.
Including service accounts in adoption metrics.→ Service and machine accounts can't enroll in MFA. Segment them out, or the adoption number understates the real human gap.
Treating all failed logins as attack signal.→ Most failures are forgotten passwords. Segment by failure reason and source concentration before calling a spike an attack.
Building dashboards from live MCP lookups only.→ MCP is useful for exploration; durable dashboards need a database-backed model with history.

Related analytics

Related dashboards

Related integrations

FAQ

Does Metabase connect natively to Auth0?
No. Metabase reads databases and warehouses. Sync Auth0 findings and metadata into a database first, or upload a CSV with the Metabase CLI, then build Metabase models and dashboards on top.
Should Metabase replace Auth0?
No — they answer different questions. Auth0 is built for hands-on security work: triage, investigation, and enforcement. Metabase is where you build governed, shareable reporting on top of the same records — the cross-tool view for leadership and the board that no single vendor console covers — and join them with HR, asset, and business data.
Should I sync every raw authentication event?
No. Roll events up to daily grain — per application, outcome, and factor type — before they reach the BI warehouse, and keep the raw log stream in your SIEM or log platform. Daily rollups answer every trend question at a fraction of the cost.
How do I measure deprovisioning lag?
Join identity records to HR departure dates — the HR system is the source of truth for who left and when. Report the median days from departure to deactivation, and list accounts still active past departure as a standing audit table.