Files
prowler/docs/user-guide/providers/gcp/organization.mdx
2025-10-15 16:38:56 +02:00

30 lines
917 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 'Scanning a Specific GCP Organization'
---
By default, Prowler scans all Google Cloud projects accessible to the authenticated user.
To limit the scan to projects within a specific Google Cloud organization, use the `--organization-id` option with the GCP organizations ID:
```console
prowler gcp --organization-id organization-id
```
<Warning>
Ensure the credentials used have one of the following roles at the organization level:
Cloud Asset Viewer (`roles/cloudasset.viewer`), or Cloud Asset Owner (`roles/cloudasset.owner`).
</Warning>
<Note>
With this option, Prowler retrieves all projects under the specified Google Cloud organization, including those organized within folders and nested subfolders. This ensures full visibility across the entire organizations hierarchy.
</Note>
<Note>
To obtain the Google Cloud organization ID, use:
```console
gcloud organizations list
```
</Note>