Google Drive settings
Last updated: May 19, 2026
Google Drive settings
Wevion's Creative Hub is backed by Google Drive via a Service Account (NOT individual user OAuth). All files are owned by the Service Account; visibility within Wevion is controlled by Wevion's RBAC (ch-109); external sharing is handled by Drive's permissions API (ch-105). Configured at workspace level — per-user OAuth is NOT available.
Who is this for
Admins setting up Wevion or troubleshooting Drive integration issues. Owners auditing the workspace's Drive setup.
The setup model
A Google Cloud project hosts a Service Account: an automated identity that Wevion uses to authenticate against Drive. The Service Account has its own Drive (Shared Drive) where Creative Hub files live.
Configuration:
GOOGLE_SERVICE_ACCOUNT_EMAIL— env var with the service account's emailGOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY— env var with the private key for signing requests
Both are set at the Wevion deployment level (not in the UI). Workspace-wide; one service account per Wevion deployment.
Where to see it
/settings → Integrations → Google Drive shows:
Field | What it means |
|---|---|
Connection status | OK / Error (last health check) |
Service account email | The email Wevion uses to authenticate |
Total storage used | Sum of all Creative Hub files |
Quota remaining | Drive storage quota left |
Last successful sync | Timestamp of last health check |
For deeper setup walkthrough (env vars, Google Cloud project, Shared Drive), see com-113 Google Drive setup.
Why Service Account (not user OAuth)
Service Account (Wevion's choice) | User OAuth (NOT used) |
|---|---|
One auth for entire workspace | Per-user auth |
No re-auth on token expiry | Users must re-auth periodically |
Files owned by workspace identity (clear ownership at offboarding) | Files owned by individual users (offboarding moves files) |
External shares via Drive permissions | Same |
No per-user Drive quota | Each user counts against their own Drive quota |
Service Account trade-off: file ownership is the Service Account, not individuals. This means: users see files in Drive only if Wevion explicitly shared them (ch-105).
Admin actions
View status
Visit /settings → Integrations → Google Drive. Quick health view.
Trigger health check
Some Wevion versions show Re-check connection button. Calls Drive API; updates status badge.
View storage usage
Same page shows total + per-folder breakdown (top-level folders by size).
Rotate credentials
If service account credentials need rotation:
In Google Cloud Console: generate new private key for the service account
Update
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEYenv var in Wevion deploymentRestart Wevion services
Trigger health check
Coordinate with admin / DevOps — env var change requires deploy or restart.
Audit shared files
Drive sharing audit: query /api/v1/audit-logs?action=creative_share to see all active grants.
Limits + quotas
Drive quota: depends on Google Workspace plan (Shared Drive has separate quota from individual users)
API rate limits: Drive API has per-project quotas; Wevion respects them with retry + backoff
Files per folder: Drive's max is 500K but Wevion's UI degrades past 1K per folder — subfolder!
Concurrent operations: per-second limits on Drive API; bulk operations queued
Troubleshooting
Connection status "Error"
Service account credentials expired or rotated without env update
Service account lost Drive permissions (someone in Cloud Console removed it)
Drive API quota exhausted for the day (rare)
Action: check /settings → Integrations → Google Drive status detail; coordinate with DevOps to verify env vars + Cloud Console.
Quota near full
Files accumulate; periodic cleanup needed
Delete old
_archivefolder contentsOr upgrade Drive storage in Google Workspace
File operations slow
Drive API latency spike
Or high concurrent load (many users uploading simultaneously)
Usually resolves on its own
"Permission denied" on file operations
Service account lost write permission to the Shared Drive
Service account email changed in Cloud Console without env update
Action: verify Service Account email matches in env + Cloud Console.
Common mistakes
Trying to configure Drive in Wevion UI: not possible — it's env-var-based (deployment level)
Sharing Service Account credentials: never share the private key; treat as a secret
Switching Service Account without migration plan: existing files will become orphaned (new SA can't see old SA's files); coordinate carefully
Expecting users to see all files in their personal Drive: they only see what Wevion explicitly shared via ch-105
Related
Google Drive setup — full setup walkthrough
Google Drive RBAC — two-layer permission model
Share external — granting Drive access to specific files