The Simplest Way to Make Databricks and Onelogin Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link databricks and onelogin to manage who can log in to data workspaces. OneLogin checks user identities and sends group roles to Databricks for daily work. This setup lets data teams run queries without separate passwords for each workspace. Your security team can add or remove users from one central place. When someone leaves the team, removing their OneLogin account stops their Databricks login right away. How databricks and onelogin share user data and roles The link between databri

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.

You link databricks and onelogin to manage who can log in to data workspaces. OneLogin checks user identities and sends group roles to Databricks for daily work.

This setup lets data teams run queries without separate passwords for each workspace. Your security team can add or remove users from one central place. When someone leaves the team, removing their OneLogin account stops their Databricks login right away.

How databricks and onelogin share user data and roles

The link between databricks and onelogin relies on two main standards. First, SAML handles the sign-in flow when a user opens a workspace. Second, SCIM syncs users and group names from OneLogin into the Databricks account console.

When an engineer tries to log in, Databricks redirects the browser to OneLogin. OneLogin checks the user password and requires a second factor check. After that check passes, OneLogin sends a signed assertion back to Databricks. That message tells Databricks who the person is and lets them in.

Group sync runs in the background to keep permissions up to date. You map OneLogin roles to groups inside your central Databricks account. From there, you assign those groups to specific workspaces, catalogs, and compute clusters. Data engineers get the exact read and write permissions they need for their jobs.

Common failure modes and how to scope permissions

Many teams set up single sign-on for browsers but ignore local tools. Engineers often create personal tokens in Databricks to run scripts from their laptops. These tokens frequently have long lifetimes and keep working after a team member changes roles. Even worse, teams sometimes share one service account token across several automated jobs.

When five jobs share one token, your audit logs lose their value. You can see a query ran, but you do not know who wrote it. Broad group mappings create a similar problem inside the workspace. If you map everyone to an admin group, any user can read sensitive tables.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split your OneLogin groups by job function and data sensitivity. Create separate groups for finance analysts, machine learning engineers, and platform admins. In Databricks, grant each group permissions only on the catalogs they need to read. Turn off token creation for regular users and require short lifetimes for all tokens.

Protecting sensitive fields during workspace queries

Identity sync solves who can enter the workspace, but not what data comes out. Production tables often hold customer emails, phone numbers, card numbers, and national IDs. An analyst may need to count rows in a table without seeing those private fields.

Relying only on workspace roles means cloning tables or building complex views for every team. That extra work slows down data projects and leads to mistakes over time. Teams also need clear logs of every SQL command run through local developer tools. Good data security pairs identity checks with field-level controls on the query results themselves. Masking rewrites matched fields in results so analysts can query tables safely.

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

Should we connect OneLogin at the account level or workspace level?

Always link OneLogin at the central Databricks account level rather than individual workspaces. Account-level setup lets you sync users once and assign them to any workspace. It also gives you one place to enforce sign-in rules across your whole company.

What happens to running jobs when we remove a user in OneLogin?

SCIM sync disables the user in Databricks soon after you remove them in OneLogin. Interactive sessions end, and personal tokens tied to that user stop working. Scheduled jobs owned by that user will fail until you assign a new owner.

How do we stop engineers from using long-lived personal tokens?

You can restrict who can create personal tokens inside the Databricks workspace settings. Limit token creation to specific groups and set a short maximum lifetime for tokens. Encourage engineers to use short-lived credentials tied to their active single sign-on session instead.

The query runs. The emails stay hidden.