External storage — ownCloud User Manual 6.0 documentation

# ownCloud User Manual

# 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.

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

4. Create a project, e.g. “ownCloud-Project”

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.

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.

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

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

14. 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).

15. Now press the `Grant Access` button and you will finally be redirected to a Google website.

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