Setting Up Google Drive Access
This step-by-step guide will help you create a private Google Drive connection for Archmage. It allows you or your team to read shared Google Sheets and drive files securely. You do not need any coding or IT experience. The entire setup takes about 10 minutes.
Step 1: Create a Project
Section titled “Step 1: Create a Project”- Open your web browser and sign in to the Google Cloud Console using a personal Google account (preferably the one managing your team’s shared sheets).
- Click the project button in the upper-left area of the top bar (it may say “Select a project” or show an existing project name).
- In the pop-up window, click New Project in the upper-right corner.
- For Project name, enter:
Archmage. - Leave “Organization” and “Location” as they are, then click Create.
- Wait a few seconds, then check the top navigation bar to ensure your active project is switched to Archmage.
Step 2: Enable the Google Drive API
Section titled “Step 2: Enable the Google Drive API”- In the search bar at the very top of the screen, type
Google Drive APIand press Enter. - Click on Google Drive API from the search results.
- Click the blue Enable button and wait a moment for the setup to complete.
Step 3: Configure the Consent Screen
Section titled “Step 3: Configure the Consent Screen”- Click the main menu icon (three horizontal lines) in the top-left corner.
- Navigate to APIs & Services -> Google Auth Platform (on some accounts, this may still be named OAuth consent screen).
- Click Get Started to open the quick setup:
- App information:
- App name: Enter
Archmage. - User support email: Select your own Gmail address from the drop-down list.
- Click Next.
- App name: Enter
- Audience: Choose External, then click Next.
- Contact Information: Type your Gmail address in the email field, then click Next.
- Finish: Check the agreement box, then click Continue and Create.
- App information:
Step 4: Add Google Drive Permission
Section titled “Step 4: Add Google Drive Permission”- In the left sidebar, click Data Access.
- Click Add or remove scopes.
- In the Filter field (showing “Enter property name or value”), type
drive.readonlyand press Enter. - Check the box next to
.../auth/drive.readonly(description: See and download all your Google Drive files). - Scroll down to the bottom, click Update.
- Back on the Data Access page, click Save.
Step 5: (Optional) Set Up a Simple Website with Google Sites
Section titled “Step 5: (Optional) Set Up a Simple Website with Google Sites”Publishing an external app requires a public home page and privacy policy link. If your team already has a website with a privacy policy page, you can skip this step and proceed directly to Step 6.
If you do not have a website, you can set one up using this prepared template:
- Open the Simple GCP Site Template in Google Drive.
- Right-click the Simple GCP Site file and select Make a copy.
- Go to Google Sites and open your copied site (Copy of Simple GCP Site).
- (Optional) Review and customize the Privacy Policy page content if needed.
- Click the purple Publish button in the upper-right corner.
- Enter a web address (e.g.,
archmage-team-site) and click Publish to take the site live. - Click the drop-down arrow next to the Publish button and select View published site.
- Copy the Home page’s address from the address bar at the top of your browser and paste it somewhere temporary for later use.
- Click Privacy Policy in the top-right navigation menu of the published site, copy that page’s address from the address bar, and paste it in the same place.
Step 6: Complete Branding Settings
Section titled “Step 6: Complete Branding Settings”- Return to the Google Cloud Console. (If you closed the browser tab earlier, follow Step 1.1, 3.1, and 3.2 to get back to the Google Auth Platform page).
- In the left sidebar, click Branding.
- Scroll down to the App domain section:
- Application home page: Paste your website’s home page link (from your own site or Step 5).
- Application privacy policy link: Paste the privacy policy page link (from your own site or Step 5).
- Scroll down to Authorized domains:
- Click + Add domain.
- If you used your own domain, enter your root domain (e.g.,
yourcompany.com). - If you used Google Sites in Step 5, enter:
google.com.
- Click Save at the bottom of the page.
Step 7: Publish the App
Section titled “Step 7: Publish the App”- In the left sidebar, click Audience.
- Under the Publishing status section, click the Publish app button.
- In the confirmation pop-up, click Confirm. The app’s status will change to In production.
Step 8: Get Your Client ID and Client Secret
Section titled “Step 8: Get Your Client ID and Client Secret”- In the left sidebar, click Clients.
- Click + Create client:
- Application type: Choose Desktop app.
- Name: Leave the default name or enter
Archmage Client.
- Click Create.
- A window will appear showing two values:
- Client ID
- Client Secret
- Save both values — anyone running Archmage needs them.
Step 9: Instructions for Team Members (One-Time Sign-In)
Section titled “Step 9: Instructions for Team Members (One-Time Sign-In)”Each team member needs the Client ID and Client Secret from Step 8 before starting.
Send this to your team
Section titled “Send this to your team”When you run archmage drive login, your browser will open a Google sign-in page:
- Sign in: Choose the Google account that has access to the team’s shared Google Sheets.
- Handle the warning: A warning screen will appear stating: “Google hasn’t verified this app”.
- Click the small Advanced link in the bottom left.
- Click the link that appears at the bottom: Go to Archmage (unsafe).
- On the “Make sure you trust Archmage” screen, click Continue to complete the authorization.