The Simplest Way to Make Redash and Scim Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using redash and scim together lets your identity provider manage analytics accounts and group roles. When a person joins or leaves, your directory updates their query permissions without manual steps. Data teams use Redash to run SQL queries and build charts for the whole company. As the team grows, adding and removing users by hand takes too much time. Old accounts often stay active long after people leave the team or change roles. Linking your user directory through SCIM fixes this lifecycle

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Using redash and scim together lets your identity provider manage analytics accounts and group roles. When a person joins or leaves, your directory updates their query permissions without manual steps.

Data teams use Redash to run SQL queries and build charts for the whole company. As the team grows, adding and removing users by hand takes too much time. Old accounts often stay active long after people leave the team or change roles. Linking your user directory through SCIM fixes this lifecycle problem at the source.

How redash and scim handle logins and roles

Single sign-on checks who a user is when they log in to the query tool. Still, login checks alone do not remove users when they leave the company. They also do not update group memberships when an analyst moves to a new team. SCIM fills this gap by pushing user and group updates straight from your identity provider.

Open source Redash does not include a built-in SCIM endpoint out of the box. Because of this, teams often run a small sync script or a custom bridge service. This bridge reads user lists from the identity provider and calls the Redash REST API. It creates new accounts, assigns users to groups, and turns off accounts for former staff.

Once a user lands in a Redash group, that group controls which data sources they see. A finance group might read billing tables, while a product group reads app event logs. Even with clean groups, every query in a group still shares one backend database user. That shared database user creates a gap between your identity directory and your actual data.

Common failure modes and how to scope roles

The biggest risk in Redash is the shared database account behind each data source. Five analysts in the same group all run queries through one single database login. When a bad query locks a table, the database logs only show the shared account. You must dig through app logs to find out which person ran the query.

Broad database roles make this problem much worse for security and data teams. If the shared database user can write data, any analyst in that group can drop tables. If the shared user can read all schemas, analysts might query raw customer fields. Masking rewrites matched fields like emails, phone numbers, card numbers, and national IDs in results.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Sync scripts between your identity provider and the Redash API can also fail in silence. If an API key expires, the directory stops disabling accounts for people who leave. To reduce this risk, give each Redash group its own read-only database user. Limit each database user to the exact tables that specific team needs to read.

Keeping data access safe as teams change

Good user sync is only the first half of securing your analytics workflow. You also need to control what happens when a valid user runs a heavy query. Putting strict limits on database roles stops accidental writes and protects private customer columns. You should also review your API sync logs each week to catch failed user updates.

When you pair clean directory groups with least-privilege database roles, audits become much faster. You know who has an active account, which group they belong to, and what they query. Your team spends less time fixing broken permissions and more time building useful dashboards.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Does open source Redash support SCIM out of the box?

No, open source Redash does not have a native SCIM endpoint built in. Teams usually connect their identity provider to the Redash API using a small sync job.

How do SCIM groups map to Redash data sources?

Your sync tool maps each identity provider group to a matching group inside Redash. You then link each Redash group to a specific database user with limited read rights.

What happens to saved queries when SCIM disables a Redash user?

Disabling a user via the API stops them from logging in or running new queries. Their past queries and dashboards stay in the app so the team does not lose work.

The query runs. The emails stay hidden.