Cluster admin can enable Google Drive attachment on cluster settings. Once enabled, tenant admin can create team folder with Google Drive as cloud storage.
Notice: to enable Google Drive attachment, the Centrestack instance needs to be accessible on public network. And the external URL is defined correctly.
1. Create an OAuth Client ID in your own Google Drive account
- Login Google Developers Console at https://console.developers.google.com
- On Google APIs, click the drop down menu on top, to create a new Project.
- After the project is created, click the drop down menu on top and select the newly created project. In Project Dashboard, click 'Enable APIS AND SERVICES'
- In the API list, find Google Drive API and enable it.
- Go to Credentials on the new project. Visit 'OAuth consent screen' and configure. Make sure to specify the Product name and Authorized Domains. Save the change.
- Go to Credentials. Select 'Create credentials' and choose 'OAuth client ID'
- Create a 'Web application'. In the Authorized redirect URIs, login web portal as cluster admin. Go to Cluster Settings, Storage Manager, edit the settings here and copy the "Redirect URL" under "Google Drive" action. This is the 'Authorized redirect URIs' here.
- Click 'Create', to create the new client ID. Once it is created, it will show the client ID and Client Secrets. Copy them down.
2. Enable Google Drive attachment on Centrestack
- Login cluster manager as cluster admin. Go to Cluster Settings, Storage Manager.
- Click Edit and enable 'Google Drive'
- Paste the client ID and client secret here. Save.
- Now when tenant admin create a new team folder, under Cloud Storage, they'll see the 'Google Drive' option. Follow the wizard to attach user's own Google Drive.