The Simplest Way to Make Airflow and Scim Work Like They Should
Teams pair airflow and scim to sync user accounts and roles from a central provider. This setup lets data teams run jobs while their provider controls who can log in. Data platforms grow fast as more teams build and run daily data tasks. Without auto user sync, admins must add and remove each person by hand. That manual work wastes time and leaves old accounts open when people leave. Pairing your job runner with an identity standard fixes this user sync gap. How airflow and scim handle login
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.
Teams pair airflow and scim to sync user accounts and roles from a central provider. This setup lets data teams run jobs while their provider controls who can log in.
Data platforms grow fast as more teams build and run daily data tasks. Without auto user sync, admins must add and remove each person by hand. That manual work wastes time and leaves old accounts open when people leave. Pairing your job runner with an identity standard fixes this user sync gap.
How airflow and scim handle login and roles
SCIM is an open standard that moves user data between identity systems and apps. Your identity provider holds the main list of staff accounts and team groups. When a person joins a team, the provider sends a web request out. That request tells the target app to make a new user record right away.
Airflow runs scheduled data jobs and uses role rules to control user actions. By default, open source setups wait for a user to log in first. Only then does the app make a local profile and map group roles. When you link SCIM to your setup, user records sync before the first login.
Group claims from the identity provider map to role levels inside the job app. Viewers can check job status and read task logs for their own teams. Operators can start runs, clear failed tasks, and pause schedules when bugs pop up. Admins manage app settings and connections without touching the central user directory at all.
When someone leaves the company, the identity provider sends a disable call right away. The workflow app blocks that account and drops its active roles in seconds. Auditors can check one central log to see who had what role and when.
Common failure modes and how to scope roles
Many teams fail by using one shared admin token for all user sync jobs. If that broad token leaks, an attacker can make fake admin users at will. Another common mistake is mapping every synced group to a broad editor role. That gives too many people the power to edit production jobs and view secrets.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Sync jobs can also fail when network rules block traffic from the identity provider. When those calls drop, old accounts stay active long after staff change teams. Unlogged role changes make it hard to track who ran a bad data task.
To fix this, scope your sync token so it only edits user and group records. Never let the sync account trigger data tasks or read stored database keys. Map each identity group to a narrow role tied to specific job folders. Put the sync endpoint on a private path that only accepts known provider traffic.
Keeping data runs safe after user sync
Syncing accounts is only the first step toward a safe data platform setup. Once users log in, their jobs still touch databases and cloud storage buckets. Make sure every task run logs the exact user who started or changed it. Rotate sync keys on a set schedule and watch for failed user update calls.
Keep human user roles separate from the machine accounts that run daily code. People should only trigger and watch jobs through the main web screen. Background workers should use scoped machine roles that match the single task they run. If a task handles sensitive data, masking rewrites matched fields like emails or card numbers.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Does open source Airflow support SCIM out of the box?
Base open source installs rely on login flows to create users on the fly. Managed cloud versions and custom plugins add direct SCIM endpoints for background user sync.
What happens to running jobs when SCIM disables a user?
Scheduled background jobs keep running because they use machine roles instead of user profiles. The disabled user loses web login rights and cannot start new runs.
How should we map identity groups to Airflow roles?
Create separate groups in your identity provider for viewers, operators, and platform admins. Map each group to a matching role that limits actions to specific team tasks.
Related guides
In this post