Skip to content

Google Drive plugin fails to create files: “No permission” #24233

Closed

Description

@H0rs3man

What issue are you seeing?

I am using the Google Drive plugin in the Codex desktop app on Windows 10.

The plugin connects successfully, and MCP appears to be working. However, when I ask Codex to create a new Google Doc in my Google Drive, the action fails with:

No permission

The issue seems to be that the Google OAuth flow does not request write/create permissions for Google Drive or Google Docs. The plugin connects successfully, but it cannot create/alter files afterward.

What steps can reproduce the bug?

  1. Open Codex desktop app on Windows 10.
  2. Connect the Google Drive plugin.
  3. Complete the Google OAuth flow. (This step only permission is granted, no edit or create permission was asked)
  4. Ask Codex to create a simple Google Doc, for example:

Create a Google Doc in my Google Drive named "Codex Drive Write Test" with the content "test".

  1. Codex attempts to use the Google Drive plugin.
  2. The action fails with:

No permission

Reconnecting the Google Drive plugin does not fix the issue. Only see and download permissions were granted.

Image

What is the expected behavior?

The Google Drive plugin should request the required write/create permissions during OAuth.

If the current token does not have the required permissions, Codex should trigger reauthorization and request the missing Google Drive or Google Docs write scope before attempting to create the file.

Additional information

Codex app version: 26.519.41501
Subscription: Plus
Model: gpt-5.5
Platform: Windows 10, Codex desktop app

I am using a personal Plus account, not a workspace or enterprise account.

The plugin connects successfully, but creating a Google Doc fails with "No permission". The OAuth consent screen does not appear to request write/create permissions.

Activity

  1. added
    bug
    on May 23, 2026
  2. added
    app
    windows-os
    auth
    skills
    on May 23, 2026
  3. inputchip commented on May 23, 2026

    @inputchip

    Facing this same issue. Happened when I tried to switch accounts. Codex on Windows desktop.

  4. H0rs3man commented on May 24, 2026

    @H0rs3man
    Author

    Facing this same issue. Happened when I tried to switch accounts. Codex on Windows desktop.

    Hi, did you cope with that successfully? How did you fix this problem?

  5. inputchip commented on May 27, 2026

    @inputchip

    Facing this same issue. Happened when I tried to switch accounts. Codex on Windows desktop.

    Hi, did you cope with that successfully? How did you fix this problem?

    Only workaround I found is connecting to Google Drive via MCP server. Seems to be somewhat finicky though.

  6. smeetChheda commented on May 28, 2026

    @smeetChheda

    You can go to your account settings on ChatGPT Web and go to Apps -> Google Drive and then disconnect it and re-connect it. It launched the OAuth screen and worked fine afterwards.

  7. reduced2ash commented on May 28, 2026

    @reduced2ash

    You can go to your account settings on ChatGPT Web and go to Apps -> Google Drive and then disconnect it and re-connect it. It launched the OAuth screen and worked fine afterwards.

    This does not work for me. Even after wiping the google openai connection in codex, chatgpt web, and deleting it from my google account, trying to connect the google drive app again in the chatgpt website, it only asks google for read permissions and not edit. Same problem with trying to do it in codex.

  8. reduced2ash commented on May 28, 2026

    @reduced2ash

    UPDATE: I found a fix! firstly, to be safe and start clean, remove the openai permissions on your google account by going into manage google account < linked apps < find openai then remove permissions. Then go to the chatgpt website (this will fix it for codex too), go to settings < apps and disconnect the google drive app if it's already connected. Then connect it again- when doing so you will probably see that it still only requests permissions from google to view documents and not edit them. The fix? Open up a brand new chat (in chatgpt web app) and simply just type "create a google doc" and then it should automatically prompt a pop up asking to fix update/expired google permissions, clicking that then takes you through the google oauth again, where this time it asks for the edit permissions. This also fixed it in codex for me.

  9. mdemoret-nv commented on May 29, 2026

    @mdemoret-nv

    @reduced2ash Thank you! This worked for me too. Just asking "create a google doc" in the browser triggers the permissions refresh with write access.

  10. H0rs3man commented on May 30, 2026

    @H0rs3man
    Author

    UPDATE: I found a fix! firstly, to be safe and start clean, remove the openai permissions on your google account by going into manage google account < linked apps < find openai then remove permissions. Then go to the chatgpt website (this will fix it for codex too), go to settings < apps and disconnect the google drive app if it's already connected. Then connect it again- when doing so you will probably see that it still only requests permissions from google to view documents and not edit them. The fix? Open up a brand new chat (in chatgpt web app) and simply just type "create a google doc" and then it should automatically prompt a pop up asking to fix update/expired google permissions, clicking that then takes you through the google oauth again, where this time it asks for the edit permissions. This also fixed it in codex for me.

    Thanks a lot! This works for me as well

  11. seany commented on May 31, 2026

    @seany

    UPDATE: I found a fix! firstly, to be safe and start clean, remove the openai permissions on your google account by going into manage google account < linked apps < find openai then remove permissions. Then go to the chatgpt website (this will fix it for codex too), go to settings < apps and disconnect the google drive app if it's already connected. Then connect it again- when doing so you will probably see that it still only requests permissions from google to view documents and not edit them. The fix? Open up a brand new chat (in chatgpt web app) and simply just type "create a google doc" and then it should automatically prompt a pop up asking to fix update/expired google permissions, clicking that then takes you through the google oauth again, where this time it asks for the edit permissions. This also fixed it in codex for me.

    This fix worked for me too! Note that you need to explicitly select Google Drive and then say "create a google doc" and then it'll prompt to reconnect a "stale connection"

    Image
  12. KeKeDou810 commented on May 31, 2026

    @KeKeDou810

    UPDATE: I found a fix! firstly, to be safe and start clean, remove the openai permissions on your google account by going into manage google account < linked apps < find openai then remove permissions. Then go to the chatgpt website (this will fix it for codex too), go to settings < apps and disconnect the google drive app if it's already connected. Then connect it again- when doing so you will probably see that it still only requests permissions from google to view documents and not edit them. The fix? Open up a brand new chat (in chatgpt web app) and simply just type "create a google doc" and then it should automatically prompt a pop up asking to fix update/expired google permissions, clicking that then takes you through the google oauth again, where this time it asks for the edit permissions. This also fixed it in codex for me.

    It works, THANK YOU SO MUCH BRO!!!!

  13. mkahng commented on Jun 1, 2026

    @mkahng

    I hit a related Google Drive connector auth/scope failure on macOS, with an additional stale-connection state after trying to force a clean reconnect.

    Environment:

    • Product: Codex Desktop
    • Platform: macOS 26.3.1 (25D2128)
    • Codex app: 26.527.31326 (3390)
    • Plugin/connector: google-drive@openai-curated

    Observed sequence:

    1. Google Drive connector appeared connected in Codex and _get_profile initially worked.
    2. A tiny write test using the exposed Google Drive create-file tool failed:
    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.
    
    1. Reconnecting Google Drive from Codex did not show a Google OAuth consent prompt.
    2. I then removed the OpenAI entries from Google Account -> Linked apps. After removal, the Google Account linked apps list no longer showed OpenAI.
    3. After that, Google Drive connector calls from Codex correctly failed at the API layer with:
    401 UNAUTHENTICATED
    Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.
    
    1. However, the Codex UI still showed Google Drive as connected. The user disconnected/reconnected and restarted Codex, but reconnect still did not trigger a Google consent screen.

    Expected behavior:

    • If the connector token lacks write scopes, Codex should offer an in-product reauthorization/upgrade flow that requests the required Drive/Docs/Sheets/Slides write scopes.
    • If the Google-side grant has been revoked, Codex should not keep showing the connector as connected; reconnect should force a fresh OAuth consent flow.

    So this seems like both a write-scope upgrade problem and a stale connector-state problem: the live connector returns 401, while the Codex UI still believes Google Drive is connected and does not launch OAuth again.

  14. adaley-openai commented on Jun 1, 2026

    @adaley-openai
    Contributor

    Hi folks - we identified a configuration issue on our end and resolved it. This should no longer be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthbugskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions