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

Published
Length
3 min read

Luis Felipe Dias

All posts

Looker and OneLogin work together by linking your identity provider to your analytics platform. This setup lets teams log in once and run reports based on their group roles. Data teams need fast ways to read charts and build dashboards. Security teams need strict rules over who can run database queries. When you join these two tools, OneLogin handles user sign-in and group assignments. Looker then reads those group tags and applies the right data permissions. You stop managing separate password

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.

Looker and OneLogin work together by linking your identity provider to your analytics platform. This setup lets teams log in once and run reports based on their group roles.

Data teams need fast ways to read charts and build dashboards. Security teams need strict rules over who can run database queries. When you join these two tools, OneLogin handles user sign-in and group assignments. Looker then reads those group tags and applies the right data permissions. You stop managing separate passwords for every new analyst on the team. When someone leaves the company, you turn off their OneLogin account once.

How looker and onelogin share user roles and permissions

The link between looker and onelogin relies on standard single sign-on protocols like SAML. When a user opens a dashboard, Looker sends a login request to OneLogin. OneLogin checks the user identity and asks for a second factor if needed. After the check passes, OneLogin sends a signed message back to Looker. This message holds the user email, name, and assigned group roles.

Looker reads those group names and maps them to internal permission sets. For example, a finance group in OneLogin maps to a finance role in Looker. That role controls which data models and dashboards the user can view. You can also pass user attributes from OneLogin into Looker data filters. This step restricts rows so managers only see data for their own region.

To keep user lists clean, many teams add user provisioning with SCIM. When you add a person in OneLogin, SCIM creates their Looker account right away. When you remove them from a group, their Looker role drops at the same time. This flow prevents old accounts from lingering with active permissions.

Common failure modes in analytics and database permissions

Single sign-on fixes how users enter the reporting app. Yet a big security gap often remains between Looker and the backend database. Most teams set up Looker to query the database with one shared service account. Every chart and query runs under that single database user name. When a bad query slows down the database, logs only show the shared account. You cannot tell which person in OneLogin triggered that heavy query.

Broad group mappings also cause trouble over time. Admins often map default OneLogin groups to high-level Looker roles to save time. Soon, contractors and interns gain the power to query raw tables with sensitive fields. If a table holds emails, phone numbers, or card numbers, those values appear in results. Role drift makes it hard to pass security audits without weeks of manual cleanup.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Scoping roles and network paths for safer data queries

To fix these gaps, start by breaking up broad roles into small task groups. Create specific OneLogin groups for viewers, explores, and model builders. Map each group to the smallest set of tables needed for the job. Use attribute filters so row-level rules follow the user identity from OneLogin.

Next, lock down the network path between the analytics app and your data warehouse. Do not leave database ports open to the public internet. Restrict database traffic to known addresses and require strong TLS keys for every link. Rotate your database service keys on a set schedule to limit key leaks.

Finally, review your audit logs across both systems every month. Check OneLogin logs for failed sign-in attempts and odd login locations. Match those records against Looker query histories to spot unusual data exports early.

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

How do Looker and OneLogin sync user groups?

OneLogin sends group memberships inside the SAML assertion during each login event. You can also set up SCIM to push group updates and deactivate users in real time.

Can OneLogin control row-level data rules inside Looker?

Yes, OneLogin can pass custom user attributes like department or region during sign-in. Looker places those values into data filters to limit which rows a user sees.

Why do database logs hide the OneLogin user identity?

Looker connects to most databases through a shared service account with one static credential. The database only records that shared account unless you pass user context in query comments.

The query runs. The emails stay hidden.