What Oleria discovers
- IAM policy bindings at the organization, folder, project, and resource level.
- Service accounts across the organization or project, and their user-managed service account keys. Google-managed keys aren’t included.
- Cloud Storage HMAC keys in each project.
- Workload Identity Federation and Workforce Identity Federation principals that are named in IAM bindings.
- Google Workspace users and groups, through domain-wide delegation.
- Cloud Storage buckets and who has access to them.
- Secret Manager secrets and their IAM bindings.
- Activity from Cloud Audit Logs, including Secret Manager access events when Data Access audit logs are enabled.
- Risk signals from Security Command Center findings, if you enable it.
- AI agents - when agent discovery is enabled for your workspace, the agents you run on Agent Runtime and Cloud Run, and the agents Agent Registry lists. See AI agents.
Prerequisites
- GCP Organization Admin or Project Owner role to grant IAM roles to the connector service account
- Google Workspace Super Admin role to configure domain-wide delegation. The admin Oleria acts as afterward can have fewer privileges; see the domain-wide delegation step.
Use a service account (and not an employee account) with the suggested privileges for the integration to ensure continuity.
Integration approaches
Oleria supports two integration scopes. Pick one, then follow the matching Organization or Project tab in each step below where the two differ.- Organization (Recommended) - Oleria sees all projects, folders, and resources across your entire GCP org, including org-level IAM policies and cross-project bindings. Recommended for full visibility.
- Project - Oleria is scoped to IAM bindings, resources, and storage within a single project only. Use this if you don’t have org-level access or only want to connect a specific project.
Connect GCP to Oleria
1
Create a connector service account
-
Sign in to the Google Cloud Console. For a project connection, select the target project first. Navigate to IAM & Admin -> Service Accounts.

-
Select Create Service Account. Provide a name such as
oleria-connectorand select Create and Continue.
- Skip the optional role grant and user access steps. Select Done.
2
Enable required GCP APIs
The connector calls a number of Google Cloud APIs. Each one must be enabled in the host project of the connector service account; if any are disabled, authentication or sync will fail.Option A: Using the Google Cloud Console
- In the Google Cloud Console, select the project that owns the connector service account from the resource picker.
- Navigate to APIs & Services -> Enabled APIs & services -> Enable APIs and Services.
-
Search for and enable each of the following:
- Cloud Resource Manager API
- Identity and Access Management (IAM) API
- Cloud Asset API
- Cloud Identity API
- Admin SDK API
- Cloud Storage API
- Cloud Logging API
- Secret Manager API
- Organization
- Project
YOUR_PROJECT_ID is the project that owns the connector service account. For Cloud Resource Manager, IAM, Cloud Asset, Cloud Identity, Admin SDK, Cloud Storage, and Cloud Logging, enabling the API on this single host project is sufficient - the connector calls these APIs on behalf of resources across the whole organization. Secret Manager is the exception; see below.Enable Secret Manager on every billed project in your organization
Enable Secret Manager on every billed project in your organization
Who runs this: you, using your own Google account - not the connector service account. This is a one-time setup task and grants nothing to the connector itself (that happens in the next step).Roles you need for this procedure:The billing role must be granted by whoever already administers the billing account (find Why the script below builds two lists instead of one: a billing account isn’t owned by an organization - the same billing account can pay for projects in other orgs too. So “every project my billing account pays for” and “every project in my org” are two different questions with two different answers. The script asks both and keeps only the overlap, so it never touches a project outside your org.Review the A project left off this list isn’t checked for secrets - nothing else about its integration is affected. You can run this against a subset of
Grant yourself the first two if you don’t already have them - Organization Admin from Prerequisites does not include any of these three roles:
YOUR_BILLING_ACCOUNT_ID under Billing -> Account Management):$TARGETS list above before continuing - enabling a service is a state change with no bulk undo. Once it looks right:$TARGETS if you only want secret visibility in some projects.3
Grant IAM roles to the connector service account
- Organization
- Project
-
In the Google Cloud Console, select the project selector at the top of the page and select your Organization from the resource picker.

-
Navigate to IAM & Admin -> IAM and select Grant Access.

- Enter the connector service account email and assign the following roles at the organization level:
roles/cloudasset.viewer lets the connector use Cloud Asset Inventory to scan IAM policy bindings and service account inventory across the organization or project in bulk, rather than resource by resource. Sync fails without it. roles/logging.viewer is required for activity sync via Cloud Audit Logs. roles/secretmanager.viewer grants 11 permissions in total; of those, Oleria’s connector relies on three - secretmanager.secrets.list, secretmanager.secrets.getIamPolicy, and secretmanager.versions.get. Oleria never reads secret values, so roles/secretmanager.secretAccessor (which grants secretmanager.versions.access) is intentionally NOT required.4
Enable Security Command Center for risk monitoring (optional)
Oleria’s GCP risk signals come entirely from Security Command Center (SCC) findings.
- Organization
- Project
- Enable the Security Command Center API (
securitycenter.googleapis.com) in the host project. - Grant the connector service account
roles/securitycenter.findingsViewerat the organization level. - Confirm SCC itself is activated for your organization. This is separate from enabling the API: go to Security Command Center in the Cloud Console and select your organization. If a findings dashboard loads, SCC is active. If you see an activation prompt instead, an Organization Administrator or Security Center Admin needs to activate a tier (Standard is free) before Oleria can surface findings.
5
Generate a service account key
- In IAM & Admin -> Service Accounts, select the service account you created in the first step.
-
Navigate to the Keys tab and select Add Key -> Create new key.

-
Select JSON format and select Create. The key file will be downloaded to your machine. Keep this file secure - you will provide it to Oleria in the final step.

If key creation is blocked, your organization enforces the
iam.disableServiceAccountKeyCreation organization policy. Google Cloud enforces this policy by default on newer organizations. An Organization Policy Administrator needs to allow key creation for the project that owns the connector service account before you can create the JSON key.6
Configure domain-wide delegation in Google Workspace
Domain-wide delegation allows the connector service account to enumerate Google Workspace users and groups on behalf of a delegated admin.
-
Sign in to the Google Workspace Admin Console and navigate to Security -> Access and data control -> API controls. Under Domain-wide delegation, select Manage Domain Wide Delegation.

- Select Add new.
- Provide the Client ID of the service account (found under IAM & Admin -> Service Accounts -> select the SA -> Details tab -> Unique ID) and add the following OAuth scopes:

- Select Authorize.
Oleria acts as the admin you enter as Google Workspace Admin Email in the final step. That admin doesn’t need to be the Super Admin who sets up domain-wide delegation. Any of these works:
- Super Admin - covers discovery and group remediation.
- A custom admin role with the Admin API privileges Users -> Read and Groups -> Read - covers discovery.
- The same custom role plus the Groups Admin role (or the Groups -> Update privilege) - covers discovery and group remediation.
7
Set up audit log export for activity sync
This step enables Oleria to ingest Cloud Audit Logs for user activity insights.Optional: enable Data Access audit logs for Secret Manager eventsTo capture secret metadata and access events, enable Admin Read and/or Data Read audit logs for the Secret Manager API. In the Cloud Console, go to IAM & Admin -> Audit Logs, find Secret Manager API, and check the categories you want. The audit log sink configured above picks up these events automatically once they are enabled.
Choose a globally unique name for your audit log bucket - you’ll use it as
YOUR_AUDIT_BUCKET throughout this step.- Organization
- Project
Option A: Using the Google Cloud Console
Choose logs to include in sink: Select Include logs ingested by this organization and all child resources. This ensures audit logs from all projects and folders across your organization are captured. Then, in the Build inclusion filter field, enter the following and select Next:

Choose logs to filter out of sink (optional): No exclusion filters are needed. Select Create Sink.
- In the Cloud Console, confirm your Organization is selected in the resource picker at the top of the page.
-
Navigate to Cloud Storage -> Buckets and select Create. Provide a globally unique bucket name (this will be your
YOUR_AUDIT_BUCKET), choose a location, and accept the defaults for the remaining settings. Select Create. -
Navigate to Logging -> Log Router. The fastest way is to type
log routerin the GCP search bar at the top of the page and select Log Router (listed as Product page - Logging) from the results.
-
On the Log Router Sinks page, confirm the resource scope shows your Organization, then select Create Sink at the top of the page.

-
The Create logs routing sink wizard opens with four steps. Complete them as follows:

audit-log-sink as the Sink name. Optionally add a description. Select Next.Sink destination: From the Select sink service dropdown, choose Cloud Storage bucket and select your bucket. GCP will automatically switch the service type to Other resource and populate the Sink destination field with storage.googleapis.com/YOUR_AUDIT_BUCKET - this is expected behavior at the organization level. Select Next.


GCP may show a caution that a large number of log entries could be routed. This is expected - the inclusion filter above limits export to audit logs only.
-
After the sink is created, open it from the Log Router Sinks list and copy the Writer Identity service account email (for example,
serviceAccount:p123456789-xxxxxx@gcp-sa-logging.iam.gserviceaccount.com). You will use this address in the next step. -
Navigate to Cloud Storage -> Buckets, select your audit log bucket, open the Permissions tab, and select Grant Access. Add the following two principals, then select Save:
- Sink writer: In the New principals field, paste the Writer Identity email you copied. In the Role dropdown, search for and select Storage Object Creator.
-
Oleria connector: In the New principals field, enter
oleria-connector@YOUR_PROJECT_ID.iam.gserviceaccount.com. In the Role dropdown, search for and select Storage Object Viewer.
- Create a Cloud Storage bucket to receive audit logs:
- Create a Log Sink that exports organization-wide audit logs to the bucket:
- Grant the sink’s writer service account write access to the bucket:
- Grant the connector service account read access to the bucket:
Oleria automatically discovers the audit log bucket by inspecting Log Sinks - no additional configuration is needed in the Oleria workspace.
Without Data Access logging, Oleria surfaces Admin Activity events only. Data Read events (who accessed a secret value, and when) are the primary signal for identifying unused or over-permissioned secrets.
8
Connect GCP to Oleria
- Organization
- Project
-
Sign in to your Oleria workspace, select Integrations -> select Google Cloud Platform. A side panel opens. Select Organization (Recommended) from the Connector Scope dropdown.

- Provide the following and select Connect:
- GCP Organization ID - your numeric GCP Organization ID (for example,
123456789012). Found under IAM & Admin -> Settings in the Cloud Console. - Google Workspace Admin Email - email address of the Google Workspace admin Oleria acts as to read users and groups, and to run group remediations
- Service Account JSON - paste the full contents of the JSON key file downloaded above
Verify the integration
Confirm the GCP organization or project appears on the Connected tab of your Oleria Integrations page with a status of Healthy. After the first sync completes, you can review the discovered IAM bindings, service accounts, Workspace users and groups, storage buckets, and secrets in your Oleria workspace.AI agents
When agent discovery is enabled for your workspace, Oleria discovers the AI agents in your Google Cloud organization or project and shows them in the Agents inventory. To enable agent discovery, contact support@oleria.com.What Oleria discovers about agents
Oleria reports three types of Google Cloud agent:- Reasoning Engine - an agent deployed to Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine).
- Cloud Run Service - a Cloud Run service whose functional type is agent. Other Cloud Run services aren’t reported as agents.
- Registry Agent - an agent that Agent Registry lists and whose runtime Oleria doesn’t read, such as an agent hosted outside Google Cloud or on Google Kubernetes Engine (GKE). A reasoning engine or Cloud Run agent that Agent Registry lists also appears as a Registry Agent when the connector service account isn’t allowed to list reasoning engines or Cloud Run services in the agent’s project.
Oleria doesn’t store an agent’s prompt or instruction text. It stores only a hash of the instructions with each version, so a reasoning engine with no versions has no hash.
Roles and APIs for agent discovery
Agent discovery needs no role beyond the ones you grant in the IAM roles step of Connect GCP to Oleria.roles/iam.securityReviewer and roles/cloudasset.viewer hold every permission it uses. If you grant a custom role instead, add these permissions to the ones the rest of the integration needs:
The rest of the integration needs
cloudasset.assets.searchAllResources and cloudasset.assets.searchAllIamPolicies too, so the sync fails without either. A missing permission in any other row doesn’t fail the sync: Oleria reports the agents it can read.
You don’t enable any API for agent discovery. Google Cloud checks each agent API on the project that holds the agents, not on the connector’s host project, so Oleria reads agents in the projects that already use these services: the Agent Platform API (aiplatform.googleapis.com, formerly the Vertex AI API; some Google pages call it the Gemini Enterprise Agent Platform API), the Cloud Run Admin API (run.googleapis.com), the Agent Registry API (agentregistry.googleapis.com), and the Agent Identity API (agentidentity.googleapis.com). A project where one of these APIs is disabled has no agents of that kind to read. Oleria reads Agent Registry only in the projects where Cloud Asset Inventory reports the Agent Registry API as enabled.
Agent activity
Oleria reads agent activity from the audit log sink you set up in the audit log export step of Connect GCP to Oleria. It shows two kinds of activity on an agent:- Reasoning engine invocations - who queried a reasoning engine, and when. Google Cloud writes each query to a reasoning engine (
query,streamQueryandasyncQuery) as a Data Read audit log of the Agent Platform API (aiplatform.googleapis.com). - Actions under an agent identity - what an agent that runs as its own agent identity does in Google Cloud. Each service the agent calls writes them to its own audit logs. A call that changes configuration is in Admin Activity audit logs, which are always on. A call that reads data is a Data Read audit log of the service it calls. For example, a model call is a Data Read audit log of the Agent Platform API, and a read of a secret value is one of the Secret Manager API.
Google Cloud enables Data Access audit logs for a whole service, not for single methods. Data Read for the Agent Platform API also records model calls, such as
generateContent and predict, and the audit log sink exports all of those records. The extra volume counts toward your Cloud Logging and Cloud Storage charges. To limit the volume, select each project that runs agents on the Audit Logs page and enable Data Read there, instead of enabling it for the organization or a folder. You can also exempt principals from these logs on the Exempted Principals tab. Oleria then shows no invocations or model calls made by those principals.Verify agent discovery
After the next sync completes, open the Agents inventory and filter Application Instance to your Google Cloud integration. If an agent is missing, check that:- The project is in the integration’s scope.
- The connector service account holds the permissions above on the project.
- Cloud Asset Inventory has indexed the agent. Oleria locates agents, and the projects where the Agent Registry API is enabled, through Cloud Asset Inventory. A new agent, or a newly enabled Agent Registry API, isn’t searchable there until Cloud Asset Inventory indexes it. Oleria reads it in the first sync after that.
Agent limitations
- Gemini Enterprise: Oleria doesn’t read agents from the Gemini Enterprise app directly. They appear only where Agent Registry lists them.
- Agents deployed from code: For a reasoning engine deployed from source code or a container, Oleria can’t read the models, tools, or instructions inside your code.
- Created By: A reasoning engine has no Created By when it was created in Agent Studio, or more than 400 days before Oleria first discovered it. The audit log record of a creation in Agent Studio doesn’t name the engine, and Google Cloud keeps Admin Activity audit logs for 400 days.
- Cloud Run invocations: Invocations of a Cloud Run agent aren’t shown as agent activity.
- Disabling agents: Oleria doesn’t disable Google Cloud agents. If an agent runs as a service account that you manage, you can disable that service account. See Enable remediation actions. Google Cloud then rejects the account’s access tokens, so the agent can no longer call Google APIs or access Google Cloud resources, and neither can anything else that runs as that account. This cuts off the agent’s access. It doesn’t remove or shut down the agent’s deployment. You can’t do this for an agent that runs as an agent identity, or as a service account that Google manages, such as the default identity of a reasoning engine.
Enable remediation actions (optional)
Remediations allow Oleria to take automated or one-click corrective actions - such as revoking an IAM binding, removing a group member, or disabling a service account - directly from the Oleria workspace. To allow Oleria to take remediation actions in your GCP environment, grant the connector service account the following additional roles:- To revoke an IAM binding at the project level, grant
roles/resourcemanager.projectIamAdminon the project. - To revoke an IAM binding at the organization level, grant
roles/resourcemanager.organizationAdminon the organization, or a custom role with theresourcemanager.organizations.getIamPolicyandresourcemanager.organizations.setIamPolicypermissions. - To revoke an IAM binding on a folder, grant
roles/resourcemanager.folderIamAdminon the folder or the organization. - To revoke an IAM binding on a service account, grant
roles/iam.serviceAccountAdminon the project that owns the service account. - To revoke an IAM binding on a Cloud Storage bucket, grant
roles/storage.adminon the bucket or its project. - To remove a member from a Cloud Identity group, make sure the admin you entered as Google Workspace Admin Email is a Super Admin or also has the Groups Admin role (or the Groups -> Update Admin API privilege) in the Google Admin console, and add the
https://www.googleapis.com/auth/cloud-identity.groupsscope to the domain-wide delegation entry you created earlier. Group management is controlled by Google Workspace admin roles, not GCP IAM roles. - To disable a service account, grant
roles/iam.serviceAccountAdminon the project that owns the service account.
Disable supports service accounts only. Oleria can’t disable service account keys, HMAC keys, workload identities, or secrets. It also won’t disable the connector service account, a Google-managed service agent, or a service account in a project outside the integration.
The Revoke permission to resource row on the Integrations page shows as granted only when the roles are granted on the organization (or, for a project connection, on the project). A grant on a single folder, bucket, or service account still works for that resource when the action runs.
Secret Manager secrets are discovery-only in this integration. The revoke IAM binding remediations above apply to project, folder, organization, GCS bucket, and service account bindings, but not to Secret Manager secret bindings.



