Use-your-Drive connects to Google Drive through a Google app. With your own Google app, your site connects through an app in your own Google account. It's free, Google's limits for it are far above what a normal website uses, and setting it up takes about 15 to 30 minutes. The plugin guides you through every step.
Here because of a notice or e-mail about the move to your own Google app? Read Use-your-Drive is moving every site to its own Google app for the why and the date. The steps are below.
What to do
- Log in to WordPress and go to Google Drive → Settings.
- Click Connect your own Google app (or Continue setup) and follow the steps. Don't see that button? Open the Dashboard tab and click Add a Google app under Your Google apps. The setup opens the right pages in Google Cloud for you and has a copy button for every value.
- In the last step, connect your Google accounts again, this time through your own app.
- Clear your page cache, so visitors see the new connection.
Closed the setup halfway? Open it again. Is your app already saved? Then click Or connect accounts through a Google app you already set up, not Set up a new Google app. Want to read the steps first? See Setting up your own Google app step by step.
Can't find either button? Update Use-your-Drive to the latest version first.
Which type of app should I choose?
The setup starts with: Which Google accounts will you connect? Choose the first answer that fits.
Only my own Google account: a personal app (recommended)
The fewest steps, and Google shows no warning. Only the Google account that creates the app can connect through it, so create it with the account that holds the files for your site. This fits most sites.
Accounts in my Google Workspace organization: an Internal app
Every account of your organization can connect, and Google shows no warning. Accounts outside your organization can't.
Other accounts too, or I'm not sure: an External app
Any Google account can connect. Publish the app in Google Cloud (Audience → Publish app), otherwise the connection stops after 7 days. When you connect, Google shows "Google hasn't verified this app". That's expected: it's your own app. Click Advanced, then Go to … (unsafe).
Connect your accounts through your app
Accounts that are already connected keep their current connection until you connect them again through your new app. That's called moving an account. Your modules and settings stay as they are, and the account keeps the same files. Accounts with App Folder access or the hidden app storage are the exception: see below.
- In the last step of the setup, click Move (or Connect again) next to each account and sign in with that Google account.
- Several Google apps? First choose the app at the top of that step.
- An account of someone else (a client, a colleague)? That person has to sign in to Google once. Either let them do this step, or open a private window, log in to WordPress there, open the setup, click Move and let them sign in with their Google account.
- A personal app only accepts the account that created it. Set up another app for other accounts; the plugin can use several apps.
Not sure whether the next two sections apply to you? For accounts on the plugin's built-in connection, the setup tells you: those accounts show a choice or a warning in their card in the last step. Accounts without one just have a Move button.
Accounts with App Folder access
Was an account connected with Application Folder access? A new Google app can't see the files of its current App Folder, so you choose: Full access (the plugin keeps using the existing folder, but can reach the whole Drive) or a New, empty App Folder (the limit stays, but the folder starts empty). Your files always stay in your Google Drive. Read Accounts with App Folder access before you choose.
Accounts with the hidden app storage
Some accounts connected years ago keep their files in hidden app storage that a new app can't reach. Download what you still need before you move the account. See Accounts with the hidden app storage.
Which redirect URI?
The setup shows the address to paste in your Google client: your site's own address, or the sign-in page of WP Cloud Plugins when Google can't accept your site's address. Copy exactly what the setup shows. More: Which redirect URI? and Error 400: redirect_uri_mismatch.
Questions and error messages
- Questions and error messages about your own Google app (costs, the unverified-app warning, several accounts or sites, the common Google error messages)
- "Access Not Configured" or "Google Drive API has not been used in project … before"
- Error 400: redirect_uri_mismatch with your own Google app
- Your own Google app on a staging, local or http copy of your site
- Your own Google app on a WordPress Multisite network
- Going back to an older version of Use-your-Drive
- Use-your-Drive is moving every site to its own Google app (why, the date, notices and e-mails)
Still stuck? Open a ticket with a screenshot of the step and the message.