- Users can request time-bounded access to your GCP resources.
- Auditors can initiate access reviews that assign managers or group admins to periodically review users with long-lived access to GCP resources.
- All access changes are tracked as events that you can log to Slack or export to your favorite tools.
Supported resources
*You can assign give users access to GCP Service Accounts and grant GCP Service accounts access to resources. You cannot yet add GCP Service Accounts to groups.
Create a service account
To get started, create a service account with the proper permission scopes. You’ll choose how Opal authenticates as it, with workload identity federation or a key, when you connect the app to Opal.- Open the Service accounts page. If prompted, select a project.
- Ensure that the selected project has the Cloud Resource Manager API and the IAM API enabled.
- At the top of the page, click ”+ Create Service Account”. Enter a name and description for the service account. When done, click Create.
- The Service account permissions section that follows is not required. Click Continue.
- On the Grant users access to this service account screen, click Done.
- Select the new service account.
- Make a copy of the full email of the service account.
- Select the organization level at the top:

- Click + Create Role.
- Give it a title, ID and set the launch stage to General Availability.
- Click + Add Permissions.

- Add the following permissions. The
resourcemanager.organizations.getpermission is required, and the rest are optional. Use the Explanation tab to learn which permissions are necessary for your use case.
-
To manage GCP billing accounts, add all four
billing.accounts.*permissions together. Withlistandgetbut withoutgetIamPolicy, billing accounts import successfully but Opal cannot read who has access to them, so each one reports an error. - Click Create.
- Select the top level organization:

- On the right side “Info Panel”, click Add Principal:

- Enter the service account email, and select the new custom role. Then click Save.

Connect app to Opal and confirm app validations
In Opal, go to the Inventory and select +App, then find the Google Cloud Platform tile and fill out the form. Then choose how Opal authenticates as the service account:- Workload identity federation (recommended)
- Service account key
Workload identity federation is in limited beta. Contact Opal support to enable it for your organization.
- In the service account’s project, enable the Security Token Service API and the IAM Service Account Credentials API.
- On the Opal app form, turn on Authenticate with workload identity federation instead of a service account key. Opal shows an Issuer, Subject, Audience, and JWKS. Keep the form open until you select Create: reloading it generates a new key, which changes the subject and JWKS.
-
In Google Cloud, create a workload identity pool, or reuse one, and add an OIDC provider to it:
- Issuer: the Issuer from Opal.
- JWKS: paste the JWKS from Opal (for example with
--jwk-json-pathin gcloud). - Attribute mapping:
google.subject=assertion.sub. - Attribute condition:
assertion.sub == '<Subject from Opal>'. - Leave the provider’s allowed audiences empty. Opal uses the provider’s default audience.
constraints/iam.workloadIdentityPoolProvidersorganization policy), allowhttps://app.opal.dev, or your own Opal URL for self-hosted Opal. -
Grant roles on the service account to the principal for the subject, using the project’s number, not its ID:
principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL/subject/<Subject from Opal>roles/iam.workloadIdentityUser, for every Google app.roles/iam.serviceAccountTokenCreator, for Google Groups, Google Shared Drive, and Google Workspace only. Domain-wide delegation needs it because Google signs the delegation token when there’s no key.
-
Back on the Opal form, enter the Workload identity provider (its full resource name, for example
projects/123456789/locations/global/workloadIdentityPools/opal/providers/opal), the Service account email, and the Service account project ID, then select Create.

Grant access to Google groups natively
Link a Google Groups app to your GCP app so Opal manages Google group access to GCP resources the way GCP does: as agroup: IAM binding. Without a link, Opal grants access to each group member individually.
Prerequisites
- Contact Opal to enable cross-connection native links for your organization. The setting is hidden until it’s enabled.
- A Google Groups app in the same organization. You can link one Google Groups app to a GCP app.
- Opal needs each group’s email address. Opal stores group emails and aliases on the next Google Groups sync.
Link the apps
- In Opal, go to the GCP app and click Edit on the Setup tab.
- For Google Groups app, select your Google Groups app.
- Save your changes.
How it works
- On sync, Opal reads
group:bindings in GCP IAM policies and matches each one, case-insensitively, to an imported Google group by its email or alias. - Opal skips bindings that match no imported group, or that match more than one.
- Assigning a Google group to a GCP resource in Opal adds a
group:<email>binding in GCP. Removing it removes the binding. - Supported resources: organizations, folders, projects, buckets, Compute Engine instances, service accounts, BigQuery tables, and billing accounts. BigQuery datasets, Cloud SQL instances, and GKE aren’t supported.
- Changes to Google group membership take minutes to hours to take effect in Google Cloud. Removing access takes longer than granting it.
Usage data and Risk Center
Opal can ingest usage data from your GCP environment to help identify usage patterns and surface unused access grants in the Risk Center. You’ll need to enable data access audit logs in your environment following the GCP documentation. Opal currently ingests primarily read usage events, so theADMIN_READ and DATA_READ permission types must be enabled.
Enable these audit logs for the following services:
Identity and Access Management (IAM) APIGoogle Cloud StorageCompute Engine APICloud Resource Manager APICloud SQL