- Users can request time-bounded access to your Google groups.
- Auditors can initiate access reviews that assign managers or group admins to periodically review users with long-lived access to Google groups.
- Admins can add resources from other Opal integrations to an Google group so an Google group’s members can automatically gain birthright access to, for example, a GitHub repo, AWS IAM role, etc.
- All access changes are tracked in a permanent audit log that can be logged to a Slack channel or exported to your favorite tools.
Create a Google Groups app
To get started, go to the Inventory page, and click + App. Then, click on the Google Groups tile.
1. Configure a service account for Opal
For Opal to manage your Google Groups on your behalf, you’ll need a Google service account with proper permission scopes to retrieve metadata, such as group name and description, as well as to update the group. Follow the instructions for creating a service account if you haven’t already, and ensure it is granted the following scope:admin.directory.group.readonly scope.
2. Create Opal Google Group
Create an Opal Google Group. We will use this Google Group’s domain to import groups during syncs.
3. Fill out Opal form
Back in Opal, fill in details about your Google Groups service account:- For Opal group email, enter the email of the Google group created in Step 2.
- For Google Workspace admin email, enter the email of someone in your organization with admin privileges.
- For domain, optionally enter the domain of the Google Workspace. If your Google Workspace has multiple domains, Google Groups will only import Google Groups associated with the domain you enter. By default, if this is not filled out, it is the domain of the Google Workspace admin email.
- 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.
Optional: Enable native Google Groups nesting
Google groups can contain other Google groups. By default, Opal flattens nested groups into user memberships. With native nesting, Opal keeps the group-in-group relationships as they exist in Google. Opal can also add and remove member groups in Google. To enable it:- Contact Opal to enable native Google Groups nesting for your organization. The option is hidden until it’s enabled.
- On the Google Groups app creation form, turn on Enable native Google Groups nesting.
- Complete the rest of the form and save the app.
3. Import Google groups into Opal
You can import your Google groups into Opal manually or automatically. Note: Opal does not currently support syncing entire Organizational Units (OUs) or OU sub trees.Manual import
You can use the Opal UI to manually select which Google Groups to import into Opal. To do this, on the app’s Assets tab, select Import assets and then select your groups.

Automatic import
You can configure your Google Groups to be auto-imported into Opal each time the Google Groups app is synced. To automatically import your groups from Google Groups:- In Google Groups, create a Google group called Opal. Any groups that you add as members of this group will automatically be imported into Opal.
- In Opal, navigate to Inventory > Google Groups App
- Click the Edit button on the top right, then under Import Settings, toggle the setting to Auto-import tagged.
