Skip to main content
With the Google Shared Drive integration, you can manage access to the shared drives in your Google Workspace, and the folders inside them, from Opal:
  • Allow users to request just-in-time access to a shared drive or a folder in it, at the exact role they need, from the web and Slack
  • Grant a Google group access to a shared drive or a folder in it
  • Review who has access to each shared drive and folder, including access to drives through groups and nested groups
  • Set the right resource owners to delegate approvals to those with the most context
  • Automatically revoke access when a time-bound grant expires
Opal connects through a Google Cloud service account with domain-wide delegation, acting as a Workspace super admin. Opal uses that admin’s domain administrator access, so it sees every shared drive in your Workspace, not only the drives the admin is a member of.

Supported resources

Opal syncs every active user in your Workspace. Suspended users aren’t synced as users, but Opal still syncs any shared drive or group access they hold, so you can see what they’d get back if they were reactivated. Opal doesn’t label these accounts as suspended. Drive and group members from outside your Workspace are matched to Opal users by email the same way. Opal skips a member whose Opal user has been deleted, for example after they were offboarded from your identity provider. Opal syncs the folders in shared drives the admin is a member of; see Folders. The integration doesn’t sync files, or sharing with a whole domain or with anyone who has the link.

How shared drive access maps to Opal

  • Access levels: each shared drive role is an access level: Viewer, Commenter, Contributor, Content manager, and Manager.
  • One role per drive: Google allows each user or group one role on a shared drive, so when a member has several roles in Opal, Drive holds the highest. Granting a lower role doesn’t downgrade the member, and when a higher role is revoked or expires, Opal restores the highest role the member still has.
  • Revoking access: a revoke removes only the role it names. If the member’s role on the drive has changed since the grant, Opal leaves the new role in place. Access a user has through a group isn’t affected when you revoke their direct role.
  • Groups: a group’s members, including members of groups nested inside it at any depth, show the group’s access to a drive as indirect access.
  • Group membership is read-only: Google Groups owns group membership, so Opal can’t add or remove members from groups in this app, and requests for these groups are turned off. To manage membership in Opal, use the Google Groups integration.
  • Notifications: Opal turns off Google’s own sharing email when it grants drive access, because Opal already notifies the requester.

Folders

Opal syncs each shared drive’s folders, and the folders inside them, as Google Drive Folder items under the drive. Users can request and be reviewed for Viewer, Commenter, Contributor, and Content manager on a folder. Google only allows Manager on a whole shared drive.
  • Apps created before folder support: folders sync in every Google Shared Drive app, with nothing to turn on. Sync the app to see the folders in its drives.
  • Only drives the admin is a member of: Google’s domain administrator access covers shared drives but not the folders inside them, so Opal reads and changes folders as the admin. To manage a drive’s folders, add the admin as a Manager of that drive. Drives the admin isn’t a member of show no folders.
  • Access on a folder: a folder’s access in Opal lists the users granted a role on that folder. Members of the drive, and users granted a role on a folder above it, also reach the folder through those items, and show there.
  • Roles at or below inherited access: Google ignores a folder role that isn’t higher than the role someone already gets from a folder above it, or from a Google Group’s role on the drive. Opal refuses such a grant and says where the existing access comes from.
  • Roles that replace access inside a folder: granting someone a role on a folder replaces their equal or lower roles on the folders inside it. Opal removes those grants at its next sync. Before this happens, Opal warns the admin on Add users (but not when adding a group), and shows the warning on the request for the requester and reviewers.
  • Drive or folders, not both: a user or group can have Opal access on a shared drive or on folders inside it, but not both. When someone’s drive access is removed or expires, Google also removes their access to the drive’s folders, and raising their drive role replaces it. Opal therefore refuses a folder grant for a drive member, and a drive grant for someone with folder access, and says which access is in the way. To change a drive member’s access, change their role on the drive. A user can have access on a folder and on folders inside it.
  • Groups: Google Groups can be granted a role on a folder, and Opal syncs the groups granted on each folder. Groups from other apps, such as Okta or Opal groups, can be granted folders too: Opal grants each member the role.
  • Sync time: syncing folders adds one extra permissions read per folder on each sync, so apps with drives that contain many folders may sync more slowly.

Requirements

Before you begin, you must:
  • Be an Opal Admin
  • Have a Google Workspace super admin, who can configure domain-wide delegation and whom the service account acts as
  • Have access to a Google Cloud project where you can enable APIs and create a service account key
  • Be on version 1.1251.0 or later, if you self-host Opal
  • To manage folders, add the admin as a Manager of each shared drive whose folders you want to manage

Configuration steps

1. Enable the Google APIs

In the Google Cloud console, select the project that will hold the service account, and enable the following APIs: Google Cloud API Library page for the Google Drive API showing API Enabled

2. Create a service account

  1. Go to IAM & Admin > Service accounts and select Create service account.
  2. Name the service account, for example Opal Google Shared Drive.
  3. The service account doesn’t need any Google Cloud roles, so skip the optional steps and select Create and close.
Google Cloud Create service account page with the service account named Opal Google Shared Drive

3. Create a key and copy the client ID

  1. Open the service account and go to the Keys tab.
  2. Select Add key > Create new key, choose JSON, and select Create. Google downloads the key file. You’ll enter its contents in Opal in step 5.
Google Cloud Create private key dialog with the JSON key type selected
  1. Go to the Details tab and copy the Unique ID. This is the service account’s OAuth client ID, which you’ll use in step 4.
Google Cloud service account Details tab showing the Unique ID
If your organization enforces the iam.disableServiceAccountKeyCreation policy, ask a Google Cloud organization admin to allow key creation for this project.

4. Set up domain-wide delegation

  1. In the Google Admin console, go to Security > Access and data control > API controls, and select Manage Domain Wide Delegation.
  2. Select Add new, and enter the Unique ID from step 3 as the Client ID.
  3. Enter the following scopes in OAuth scopes, separated by commas, then select Authorize:
Google Admin console Add a new client ID dialog with the client ID and the three OAuth scopes, one per field

5. Create the Google Shared Drive app in Opal

In Opal, go to Inventory > +App and select Google Shared Drive. Fill in the following fields: To manage more than one Google Workspace, create a separate app for each.

6. Import shared drives, folders, and groups

After you save the app, import the shared drives, folders, and groups you want to manage: on the app’s Assets tab, select Import assets, and turn on requests for the shared drives and folders. Opal pulls access only for imported items, so drive and group members appear after the next sync.

Troubleshooting

Opal shows Google’s own error message. Look for the error it contains:
Last modified on November 23, 2026