The Simplest Way to Make Active Directory and Vertex AI Work Like They Should
Integrating active directory and vertex ai links your corporate user directory to cloud machine learning tools. This pairing lets your team log in with existing work accounts to build and run models. Most companies already store user groups and job roles inside Active Directory. Google Cloud runs Vertex AI to train models and serve predictions. Linking these two systems stops teams from creating separate cloud logins for each data scientist. When a person leaves the company, you disable their a
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.
Integrating active directory and vertex ai links your corporate user directory to cloud machine learning tools. This pairing lets your team log in with existing work accounts to build and run models.
Most companies already store user groups and job roles inside Active Directory. Google Cloud runs Vertex AI to train models and serve predictions. Linking these two systems stops teams from creating separate cloud logins for each data scientist. When a person leaves the company, you disable their account in one place. Their cloud model permissions end at the same time.
How active directory and vertex ai share identity and data
The link between active directory and vertex ai relies on identity federation and group sync. First, an admin sets up a sync tool between Active Directory and Google Cloud. This tool copies user names and security groups over to the cloud account. Passwords stay inside Active Directory, which checks every login request through a standard web redirect.
Once a user logs in, Google Cloud reads their group membership. Cloud admins map these Active Directory groups to specific Vertex AI roles. One group might get permission to run notebooks and view training jobs. Another group might only get permission to send requests to a deployed model endpoint.
Data flows follow these same role rules during daily work. When a user runs a training script, Vertex AI checks their mapped identity. The service then reads training data from cloud storage buckets that match those group permissions. Automated pipelines also use service identities to move data and call model endpoints.
Common failure modes and how to scope roles
This setup often breaks down when teams move from test projects to real apps. Developers often create shared service account keys to make scripts and notebooks work fast. They download a static key file and pass it around the team. Once that happens, your Active Directory user rules no longer control who runs what.
Shared keys create two big problems for security teams. First, audit logs only show the shared service account name, not the real person. You cannot tell which engineer ran a costly training job or read a private dataset. Second, shared keys often hold broad editor roles across the whole cloud project.
Active Directory + AI Agent Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged queries and raw data leaks cause another major risk. Engineers often test model prompts or inspect training tables that hold sensitive customer details. If a query returns emails, phone numbers, or card numbers, that raw text enters the notebook. Without field controls, private data can end up inside model training sets or prompt logs.
To fix this, teams must ban downloaded service account keys across all cloud projects. Map every human user to an Active Directory group with a narrow, single-purpose role. Separate the roles for data prep, model training, and endpoint deployment into distinct groups. Set up network rules so notebooks and endpoints only talk to approved internal subnetworks. Apply data masking to rewrite emails, phone numbers, and national IDs in query results.
Keeping audit logs and permissions clean at scale
As more teams build with machine learning, group sprawl becomes hard to manage. You might end up with dozens of Active Directory groups for every single project. Review your group mappings every quarter to remove old test roles and unused permissions. Keep base cloud roles minimal, and grant temporary elevated permissions only when a human approves a task.
Make sure your logging setup links directory user IDs to every cloud action. When someone queries a dataset or updates a model, the log must show their email. Clear logs and strict data masking keep your machine learning work safe and easy to audit.
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 Active Directory groups map to Vertex AI roles?
You sync security groups to Google Cloud and bind each group to a specific role. Users inherit Vertex AI permissions based on the Active Directory groups they belong to.
Why should teams avoid shared service account keys in Vertex AI?
Shared keys hide the real user identity in audit logs and bypass directory group rules. If a key leaks, anyone can use it to read data or run models.
How can teams protect sensitive data during model training and testing?
Teams should scope storage roles to specific folders and apply data masking on query results. Masking rewrites matched fields like card numbers, phone numbers, and emails before workloads process them.
Related guides
In this post