If you're having issues with listing your Google Drive files in Raycast, please follow this guide and only try the next step if the previous step did not lead to a resolution.
Step 1
If you receive an error related to permissions with the "Search Google Drive Files" command, first try logging out of the "Google Workspace" extension and then log in again:
- Open Raycast Preferences > Select "Extensions" at the top > Select the "Google Workspace" extension > Click the "Log out" button on the right side
- Open the "Search Google Drive Files" command again in Raycast and log in
Step 2
If logging out and logging in does not solve the problem, next try removing Raycast from your Google OAuth applications:
- Make sure to log out of the "Google Workspace" extension in Raycast (see Step 1)
- In the browser, navigate to: https://account.google.com and log in with the same account you're using in Raycast
- On the left, click "Security" > Scroll down to "Third-party apps with account access" > Click "Manage third-party access" > Select "Raycast" and choose "Remove Access"
- Open the "Search Google Drive Files" command again in Raycast and log in
Step 3
If neither logging out and in nor removing the OAuth Raycast application solve the issue, next try overriding the default OAuth permissions that Raycast requests in order to list your files:
- Make sure to log out of the "Google Workspace" extension in Raycast (see Step 1)
- Quit Raycast
- Open the Terminal app
- Enter the following line and hit return:
- Restart Raycast
- Open the "Search Google Drive Files" command again in Raycast and log in – you will see a different prompt from Google that gives Raycast extended permissions.
defaults write com.raycast.macos gSuite_oAuthScope -string "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/drive"
This adds the permission to "See, edit, create, and delete all of your Google Drive files. (You can find more information about each OAuth permission in the Google documentation)
Note that the default permission is "readonly" for your files and Raycast does not directly edit or delete your Google drive files. If you find that adding the extended permission solves your issue, please let us know!