diff --git a/admins/connectors/official/google_drive/oauth.mdx b/admins/connectors/official/google_drive/oauth.mdx index 0fe96ff7..83e76e4f 100644 --- a/admins/connectors/official/google_drive/oauth.mdx +++ b/admins/connectors/official/google_drive/oauth.mdx @@ -17,25 +17,23 @@ checkout the section [here](./service_account). - - On the left panel, open **APIs & services** - - Go to **Enabled APIs and services** - - On the top click **+ENABLE APIS AND SERVICES** - - Search for **Google Drive API** and click **ENABLE** - - Alternatively visit this [link](https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com), + - On the left panel, open **APIs & services** - Go to **Enabled APIs and + services** - On the top click **+ENABLE APIS AND SERVICES** - Search for **Google Drive API** and click **ENABLE** - + Alternatively visit this [link](https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com), select your project and enable the **Google Drive API** - - Click on **+ENABLE APIS AND SERVICES** again. - - Search for **Admin SDK API** and click **ENABLE** - - Alternatively visit this [link](https://console.cloud.google.com/flows/enableapi?apiid=admin.googleapis.com), + - Click on **+ENABLE APIS AND SERVICES** again. - Search for **Admin SDK API** + and click **ENABLE** - Alternatively visit this + [link](https://console.cloud.google.com/flows/enableapi?apiid=admin.googleapis.com), select your project and enable the **Admin SDK API** - - Click on **+ENABLE APIS AND SERVICES** again. - - Search for **Google Sheets API** and click **ENABLE** - - Alternatively visit this [link](https://console.cloud.google.com/flows/enableapi?apiid=sheets.googleapis.com), + - Click on **+ENABLE APIS AND SERVICES** again. - Search for **Google Sheets + API** and click **ENABLE** - Alternatively visit this + [link](https://console.cloud.google.com/flows/enableapi?apiid=sheets.googleapis.com), select your project and enable the **Google Sheets API** @@ -48,31 +46,31 @@ checkout the section [here](./service_account). Google Cloud Console enabling Google Docs API for the project - - - Under **APIs & services**, select the **OAuth consent screen** tab - - If you don't have a **Google Organization** select **External** for **User Type** - - Call the app Onyx (or whatever you want) - - For the required emails, use any email of your choice or `founders@onyx.app` - if you wish for the Onyx team to help handle issues. - - Click **SAVE AND CONTINUE** + + - Under **APIs & services**, select **Google Auth Platform** (previously + called "OAuth consent screen") - If not configured yet, click **Get started** + - Fill in the **App name** (e.g., `Onyx`) and **User support email**, then + click **Next** - For **Audience**, select **External** if you don't have a Google Organization, + then click **Next** - Fill in your **Developer contact email**, click **Next**, then **Continue** + - In the left sidebar, click **Data Access** + - Click **Add or remove scopes** - Add the scope `.../auth/drive.readonly` for `Google Drive API` - Add the scope `.../auth/drive.metadata.readonly` for `Google Drive API` - Add the scope `.../auth/admin.directory.user.readonly` for `Admin SDK API` - Add the scope `.../auth/admin.directory.group.readonly` for `Admin SDK API` + - Click **Update**, then **Save** OAuth consent screen scopes for Google Drive, Admin SDK, Sheets, and Docs - - This is only applicable for users without a Google Organization. - - Typically for a company, Onyx would be set up as an internal app so this step would - not apply. - - Add at least one test user email. Only the email accounts added here will be allowed to - run the OAuth flow to index new documents. - - Click **SAVE AND CONTINUE**, review the changes and click **BACK TO DASHBOARD** + - This is only applicable for users without a Google Organization. - Typically + for a company, Onyx would be set up as an internal app so this step would not apply. - In the left sidebar, + click **Audience**, then scroll down to **Test users** - Click **Add users** and add at least one test user email. + Only the email accounts added here will be allowed to run the OAuth flow to index new documents. - Click **Save** @@ -106,7 +104,10 @@ First, navigate to the Admin Panel and select the Google Drive connector. Then, create a new credential, then upload the key you downloaded in the final step. From there, click **Authenticate with Google Drive** and continue with the account you want to use to index Google Drive. -Onyx Google Drive connector showing OAuth credential selection +Onyx Google Drive
+connector showing OAuth credential selection Once complete, select the newly created credential, and click the **Continue** button to configure the connector!