Authorization
- Create a Google Cloud Project Visit https://console.cloud.google.com/projectcreate and create a new project.
- Enable Google Drive API
- 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, select your project and enable the Google Drive API
- Enable Admin SDK API
- Click on +ENABLE APIS AND SERVICES again.
- Search for Admin SDK API and click ENABLE
- Alternatively visit this link, select your project and enable the Admin SDK API
- Enable Google Sheets API
- Click on +ENABLE APIS AND SERVICES again.
- Search for Google Sheets API and click ENABLE
- Alternatively visit this link, select your project and enable the Google Sheets API
- Enable Google Docs API
- Click on +ENABLE APIS AND SERVICES again.
- Search for Google Docs API and click ENABLE
- Alternatively visit this link, select your project and enable the Google Docs API

- Set up OAuth consent screen
- 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 ASSIST AI (or whatever you want)
- Provide the required support emails of your choice.
- Click Save and Continue.
- Set up scopes
- Add the scope
.../auth/drive.readonlyforGoogle Drive API - Add the scope
.../auth/drive.metadata.readonlyforGoogle Drive API - Add the scope
.../auth/admin.directory.user.readonlyforAdmin SDK API - Add the scope
.../auth/admin.directory.group.readonlyforAdmin SDK API
- Add the scope
- Add Test Users
- Add at least one test user email (only if you don’t have a Google Organization) — only these accounts will be permitted to run the OAuth flow and index documents.
- Click Save and Continue, review your settings, then return to the dashboard.
- Create OAuth Credentials
- Go to the Credentials tab and select + Create Credentials → OAuth Client ID

- Choose Web Application and give it a name like
AssistAIConnector. - Then configure the following:
- Authorized JavaScript Origins
https://www.tryassist.in/forassist(ASSIST AI Cloud)
- Authorized Redirect URIs:
https://www.tryassist.in/admin/connectors/google-drive/auth/callback
for ASSIST AI cloud
- Go to the Credentials tab and select + Create Credentials → OAuth Client ID
Indexing
Navigate to the Admin Panel and select the Google Drive connector. Create a new credential and upload the JSON key downloaded in the previous step. Click Authenticate with Google Drive and sign in with the account you’d like to use for indexing. Once complete, select the newly created credential and click Continue to finish configuring the connector.If you plan on using permission syncing for this connector, the account performing the OAuth flow must have an Admin role in the Google Workspace that has access to the following:
- Admin console privileges -> Services -> Drive and Docs -> Settings
- Admin API privileges -> Users -> Read
- Admin API privileges -> Groups -> Read
- Admin API privileges -> Organization Units -> Read
