Google Sheets - Authorization
You no longer need to create and provide your own Google service account to use Google Sheets in Alli Workflows.
Alli now uses a built-in service account tied to your Alli client—we'll handle the authorization behind the scenes.
What You Need To Do
To ensure your workflow can read from or write to a Google Sheet, you just need to share the Sheet with your Alli client’s service account.
Step-by-Step
1. Find Your Client’s Google Service Account
- Go to this guide: How to Find Your Alli Client’s Google Service Account
- Copy the email address listed there (it will look something like
client-id@project-name.iam.gserviceaccount.com)
2. Share Your Sheet
- Open the Google Sheet you want to use
- Click Share
- Paste in the service account email you copied in step 1
- Give it the access it needs (“Editor”)
- If the Sheet lives in a Shared Drive or folder, make sure the service account has access to that folder or drive as well.
That’s it.
Once shared, Alli will handle the rest.
- No tokens, keys, or setup screens required
- So you do not need to:
- Click the Use Credentials button
- Add an environment variable or provide anytghing additional.
Just capture the email and share your sheet with that email.
In order to get started with the Google Sheets Templates, a service account with the necessary GCP permissions is required. Additionally, this Service account will need to be invited to any Google Sheet you wish to access programatically.
Creating a Service Account for Google Sheets
- Login to your GCP console
- Using the top selector, choose the Project where you want your Google Sheets service accounts to live.

- Search for "Google Sheets API" in the search bar

- Depending on your existing setup, either click "ENABLE" or "MANAGE"
- Click "Credentials" in the sidebar

- Click "+ CREATE CREDENTIALS" and select "Service account" from the options

- Add a service account name
a. Do not edit the ID field which will auto-populate
b. Optionally add a description to the service account

- Click "CREATE AND CONTINUE"
- Click "Select a role" dropdown
a. Scroll down the options and hover over "Basic"
b. Select "Editor"

- Click "CONTINUE"
- Click "DONE"
- Find the new service on the service accounts table
a. Click the pencil icon under the "Actions" column to edit

- Click the "KEYS" tab at the top

- On the Keys tab, click the "ADD KEY" dropdown and select "Create new key"
- Click "Create new key"

- In the popup modal select "JSON" and click "CREATE"
Copy the downloaded file JSON contents and save for safe keeping. The contents of this file can be pasted into the "Service Account" input for all Google Sheets Templates.
Enable the Google Drive API here

Inviting a Service Account to a Google Sheet
Navigate to the credentials page for the Google Sheets API.
- In the table shown, copy the email/name of the service account you want to use. It should be formatted like
name@project.iam.gserviceaccount.com

NOTE: This value can also be found either be found under "client_email" in the Service Account JSON.
- Navigate to the Google Sheet you're wanting to use.
- Click the Share button.

- Paste the email of the service account from step 2 and click the email option that appears (or press Enter)

- Ensure that the Service Account email has Editor access.
- Click "Send".

- Click "Share anyway"

- Now you can start using any of our Templates with that sheet!
INFO: Pro Tip Want to access multiple Google Sheets files with the same credentials? You can also share Google Drive folders with the Service Account Email, causing every file in that folder to be accessible.
Accessing the Sheet Name or ID
- Navigate to the Google Sheet you want to access with a Template.
- a. Copy the Name, shown in the top-left of the screen. This name is case sensitive. OR
b. Copy the ID, found in the URLhttps://docs.google.com/spreadsheets/d/sheet_id/edit

INFO: Pro Tip The ID of your Spreadsheet will never change, while the Spreadsheet name can be updated. We recommend using the ID where possible.