Connect a Member Project

In this guide, you will enable resource-level governance for GCP projects by upgrading them from Project Only mode to All Resources mode. This allows Guardrails to discover individual resources within the project (Storage buckets, Compute instances, IAM roles, etc.) and run runtime controls.

Prerequisites

Why Upgrade to All Resources?

After connecting your GCP Organization, projects start in Project Only mode. Guardrails can see the projects and evaluate organization-level policies (like Organization Policy constraints), but doesn't discover individual resources. To enable resource-level governance (runtime controls, resource discovery, and automated remediation) you need to upgrade projects to All Resources mode.

Step 1: Verify GCP IAM Permissions

Before upgrading a project, verify that your service account has the necessary permissions at the project level in GCP.

  1. In the Google Cloud Console, navigate to the target project.
  2. Click IAM & Admin > IAM in the left sidebar.
  3. Verify that your Guardrails service account has at minimum the Viewer role assigned. For full remediation capability, assign Editor or Owner.
Permission LevelWhat Guardrails Can Do
Viewer (roles/viewer)Discover and monitor resources. Runtime controls can evaluate but not remediate.
Editor (roles/editor)Full resource discovery plus automated remediation for most resource types.
Owner (roles/owner)Full remediation including IAM changes.

Step 2: Navigate to Organization Settings

Navigate to Accounts > Organizations and click on your GCP Organization. Select the Settings tab.

In the Organization Structure section, expand the tree to see your organization's folder hierarchy with each project showing its current discovery level.

Organization Settings page showing the Organization Structure tree with projects and their discovery level dropdowns

Step 3: Change the Project to All Resources

Find the project you want to upgrade. Click the discovery level dropdown next to it and select All Resources.

Discovery level dropdown showing None, Project Only, and All Resources options

ModeDescription
NoneThe project is excluded. Guardrails does not import or monitor it. If the project was previously imported, changing to None deletes the project and all its discovered resources from Guardrails.
Project OnlyGuardrails sees the project and evaluates organization-level policies. No resource discovery.
All ResourcesFull resource-level governance: discovery, runtime controls, and remediation. Requires appropriate service account permissions in the project.

[!CAUTION] Changing a project's discovery level to None permanently deletes the project and all of its discovered resources from Guardrails. The resources remain in GCP but all Guardrails governance data (CMDB records, policy evaluations, control states) is removed. If you want to reduce governance scope without deleting data, use Project Only instead.

Step 4: Save Configuration

After selecting All Resources, the page shows Save Changes and Cancel buttons.

Organization Structure with goliathfederalbank changed to All Resources and Save Changes button visible

Click Save Changes to apply. Guardrails will begin discovering resources in the project.

[!NOTE] Resource discovery may take several minutes depending on the number of resources in the project. Monitor progress on the project's Activity tab.

Step 5: Verify Resource Discovery

After saving, navigate to the project in the Accounts page and select the Resources tab. The project should now show a resource count with discovered GCP resources including IAM, Cloud Storage, and regions.

You can filter by Resource Type to focus on particular resource categories, or check the project's Controls tab to verify that CMDB and Discovery controls are in OK state.

Troubleshooting

IssueSolution
Resources not appearing after upgradeResource discovery takes several minutes. Check the project's Activity tab. If no activity, verify the service account has the correct IAM permissions on the project in GCP.
Permission errors during discoveryThe service account needs at least Viewer access at the project level. Check GCP IAM role assignments.
Discovery controls for a service are Skipped with "API is disabled"The service's API is not enabled in the project, so Guardrails skips discovery for it rather than erroring. Enable the API in GCP or set GCP > {Service} > API Enabled to Enforce: Enabled. See Enabling GCP Services.
GCP > Project > CMDB in Error with "Cloud Resource Manager API has not been used"The Cloud Resource Manager API is disabled in the project. Enable it and rerun the control. See Required GCP APIs.
Further assistanceOpen a Support Ticket

Next Steps