External storage

Google Drive

  1. All applications that access a Google API must be registered through the “Google Cloud Console” which can be accessed using the following URL:

    https://cloud.google.com/console
  2. Enter your Google login credentials and press the Sign in button.

    ../_images/external_google_drive_1_sign_in.png
  3. Enter your verification code which has been sent to you by SMS or the Authenticator App and press the Verify button.

    ../_images/external_google_drive_2_verify.png
  4. Create a project, e.g. “ownCloud-Project”

    ../_images/external_google_drive_3_create_project.png
  5. Select the project and choose the “APIs & auth” menu entry.

  6. Make sure that the “Drive API” and “Drive SDK” status is set to “ON” in the APIs menu.

    ../_images/external_google_drive_4_enable_api.png
  7. Click on the gear-wheel button behind “Drive API” or “Drive SDK” and choose the “API access” menu entry.

  8. Click on the Create another client ID... button and fill in the branding information.

  9. Click on the Next button and create a new client ID by selecting “Web application” as application type.

  10. Next to your site or hostname click on the Edit settings ... button.

  11. Enter the following URLs to the “Authorized Redirect URIs” list and press the Update-button.

https://your-internet-domain/owncloud/index.php/settings/personal
https://your-internet-domain/owncloud/index.php/settings/admin

Note

Attention: Make sure that the URLs contain a valid internet domain name and that this domain name is also used to access ownCloud, otherwise these URLs will not be accepted. This does not mean that ownCloud need to be accessible from the Internet, but that the domain name is send to Google to verify if the redirect URIs are valid.

  1. Login into ownCloud using the previously entered Internet domain.

  2. Click on the Add storage button in the ownCloud Admin or Personal settings dialog to add a Google Drive.

  3. Enter the folder name which should be used to access the share, e.g. “GDrive”, enter the Google OAuth 2.0 Client ID and Client secret. Additional for the admin settings you have to choose the user and/or group who/which should be allowed to access the Google Drive (Applicable).

    ../_images/external_google_drive_5_setup_ownCloud.png
  4. Now press the Grant Access button and you will finally be redirected to a Google website.

  5. Click on the Accept button to confirm that you accept the Google data usage and data security policy.

    ../_images/external_google_drive_6_accept.png