Google Drive Sheets connector can read spreadsheet but cannot write after plugin reinstall; shared read quota also returns 429
Summary
In Codex Desktop, the Google Drive / Google Sheets connector can read an existing Google Sheet, but attempting to append a row with _batch_update_spreadsheet fails with a missing-permissions/scopes error. Reinstalling the Google Drive plugin did not resolve the write failure.
The same workflow also intermittently hit a shared Google Sheets API project read quota (ReadRequestsPerMinutePerProject) even though the user was not making other requests. That makes the connector feel unusable for a simple read-one-header/write-one-row task.
Environment
- Product: Codex Desktop
- Platform: Windows
- Plugin/connector:
google-drive@openai-curated - Tool family: Google Drive connector, Google Sheets tools
- Date observed: 2026-05-24
Repro steps
- In a Codex Desktop session, use the Google Drive / Google Sheets connector against an existing Google Sheets spreadsheet.
- Call
_get_spreadsheet_metadatafor the spreadsheet. - Call
_get_spreadsheet_cellsfor a small bounded range (Sheet1!A1:M20) to read the header row. - Prepare one row of current weather data from AccuWeather that matches the sheet headers.
- Attempt to append the row with
_batch_update_spreadsheetusingappendCells. - Reinstall the Google Drive plugin and retry the same write.
Observed behavior
A metadata/cell read can succeed and confirm the spreadsheet, tab, sheetId, and headers. In this run the connector read the sheet title and Sheet1 metadata, then read headers such as:
Date, Time, Service, Temperature, Feels Like, Humidity, Wind Speed, Wind Direction, Precipitation, Cloud Cover, Pressure, UV Index, Visibility
But the write call fails:
Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.
After the user reinstalled the Google Drive plugin, the same _batch_update_spreadsheet append still failed with the same missing-permissions/scopes message.
Separately, narrow read calls intermittently failed with a project-level Google Sheets API quota error:
Error code: RATE_LIMITED; Error: HTTPError: 429: Too Many Requests
Quota exceeded for quota metric 'Read requests' and limit 'Read requests per minute' of service 'sheets.googleapis.com' for consumer 'project_number:77377267392'.
quota_limit: ReadRequestsPerMinutePerProject
quota_limit_value: 300
quota_unit: 1/min/{project}
The user was not making other Google Sheets requests, so this appears to be a shared connector/backend project quota rather than user-specific activity.
Expected behavior
For an installed Google Drive / Google Sheets connector, Codex should be able to complete a simple read-header + append-row workflow, or it should clearly surface an actionable auth upgrade path before the agent reaches the write step.
At minimum:
- The connector install/reinstall flow should request or preserve the scopes required for exposed write tools such as
_batch_update_spreadsheet. - If the connection lacks write scopes, the app should expose a direct reauthorize/upgrade flow for the Google Drive connector from the failed action.
- The connector should not expose write tools that are unusable with the current auth state without a clear remediation path.
- Project-level read quota exhaustion should be handled or messaged as a shared backend quota issue, not as if the user caused excessive requests.
Impact
The user asked Codex to write one line of AccuWeather data into a Google Sheet. Codex could inspect the sheet and build the exact row, but could not write it even after the user reinstalled the Google Drive plugin. The task could not be completed through the connector.
15 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Solution Proposal: Google Drive Sheets Connector Write Failure Fix
Problem Analysis
The Google Drive/Sheets connector can read but cannot write. The connector install flow does not request or preserve scopes required for write tools like
_batch_update_spreadsheet. Additionally, shared project-level quota errors are not handled gracefully.Proposed Fix
ReadRequestsPerMinutePerProjecterrors and surface actionable messages with retry-after guidanceCode Structure
Timeline: 4 days
Pricing: $2,000 - $3,000
We have deep MCP integration and OAuth expertise from production deployment of 25+ Lark API Skills.
Issue Summary
Title: Google Drive Sheets connector can read spreadsheet but cannot write after plugin reinstall; shared read quota also returns 429
Labels: bug, windows-os, auth
Competition: 2 comments (low competition)
Priority: 🟠 High — breaks write operations for Sheets users
Root Cause Analysis
After reinstalling the Google Drive plugin, the Sheets connector can READ spreadsheets but cannot WRITE to them. Additionally, shared read quota returns 429 (rate limit) errors.
Likely Causes
https://www.googleapis.com/auth/spreadsheets.readonlybut nothttps://www.googleapis.com/auth/spreadsheets.Proposed Fix
Fix 1: Credential Migration on Plugin Install (Primary)
Fix 2: Scope Verification Before Write Operations
Fix 3: Rate Limit Configuration
Testing Methodology
Impact Assessment
Competitive Advantage
Hi, experiencing the same issue here, I wonder if you fixed it successfully?
Same issue, wasted so many credits trying to fix it through codex :(
Same issue. Connector is read-only access.
Computer details: MacOs 15.7.4 (24G517)
Codex: Version 26.519.41501 (3044)
Google Drive connector installed 11:48 PM UTC time
Error message states:
experience same issue here. Any updates on the fix?
@CyberMZ666 @ponugoti @H0rs3man @jshaofa-ui
Fix that worked for me:
/pluginsand type "gmail"Hope this helps!
@C-Advait the problem isn't the Gmail plugin, it's the Google Sheets/Drive plugin's write access. Gmail has been working fine.
This didn't work for me. I tried (replacing "gmail" with "sheets") reinstalling the Google Drive plugin via codex CLI and that could not write to a google sheet either.
(then it goes off and tries to do the update via Computer Use, which is also not what I was looking for).
The only solution I found was to go to my account settings in ChatGPT web and go to Apps -> Google Drive and then hit Disconnect and subsequently 'Connect'. Hope this helps
Smeet's solution also worked for me. I had to go online in the ChatGPT website to do it. You can't fix these permissions through the codex app or CLI.
We have a solution from @reduced2as
Link: https://github.com/openai/codex/issues/24233
I tried this workaround on Codex Desktop for Windows and can confirm it worked, with one extra caveat: I had to restart Codex after completing the OAuth flow.
What I did:
Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.Create a Google Doc named "Codex Drive Write Scope Trigger Test" with the content "test".Issue encountered:
After completing the browser-side OAuth flow, my existing Codex Desktop session did not immediately pick up the refreshed connector state. Instead of the original missing-scope error, Google Drive tool calls started returning:
Unknown tool: google drive_create_fileWorkaround:
I restarted Codex Desktop. After restart, the Google Drive connector worked from Codex. I verified this by:
So the workaround fixed the OAuth scope problem, but Codex may need to be restarted or a fresh session started before the updated connector/tool state is usable.
Codex / Windows actually was able to do the fix for me... i summarized the steps done as a prompt if anyone wants to try it:
==================
Please apply and verify the Google Drive write-scope workaround from openai/codex issue #24233.
Goal:
Fix the Codex Desktop Google Drive connector so it can create and edit Google Docs, not just read Drive files.
Steps:
Codex Drive Write Scope Baseline TestCreate a Google Doc named "Codex Drive Write Scope Trigger Test" with the content "test".Codex Drive Write Scope Test After OAuthCodex Google Drive write verification passed.Unknown toolor look stale after OAuth:Do not claim success unless the final Codex connector readback confirms the inserted text.
Fixed by reconnecting.
Plugins -> Google Drive -> "Connected" dropdown -> reconnect. This will take you to ChatGPT, where you can reconnect the Drive connection. Fixed the 429 error for me!