In the top menu, select the project dropdown in the top navigation and select New project or go directly to the New Project page.
Enter a Project name and select the Location for your project.
Select Create.
Check the top navigation and make sure the project dropdown has your project selected. If not, select the project you just created.

Check the project dropdown in the Google Cloud top navigation

Check the project dropdown in the Google Cloud top navigation
Go to APIs & Services > Library.
Search for and select the API(s) you want to enable. For example, for the Gmail node, search for and enable the Gmail API.
Some integrations require other APIs or require you to request access:

Check the project dropdown in the Google Cloud top navigation
Open the left navigation menu and go to APIs & Services > Credentials. Google takes you to your Credentials page.
Select + Create credentials > Service account.
Enter a name in Service account name and an ID in Service account ID. Refer to Creating a service account for more information.
Select Create and continue.
Based on your use-case, you may want to Select a role and Grant users access to this service account using the corresponding sections.
Select Done.
Select your newly created service account under the Service Accounts section. Open the Keys tab.
Select Add key > Create new key.
In the modal that appears, select JSON, then select CREATE. Google saves the file to your computer.
With the Google project and credentials fully configured, finish the n8n credential:
Open the downloaded JSON file.
Copy the client_email and enter it in your n8n credential as the Service Account Email.
Copy the private_key. Don’t include the surrounding " marks. Enter this as the Private Key in your n8n credential.
///warning | Older versions of n8n
If you’re running an n8n version older than 0.156.0, replace all instances of \n in the JSON file with new lines.
///
To use this option, you must Enable domain-wide delegation for the service account as a Google Workspace super admin.
Enter the Email of the user you want to impersonate.
If you plan to use this credential with the HTTP Request node, turn on Set up for use in HTTP Request node.
With this setting turned on, you’ll need to add Scope(s) for the node. n8n prepopulates some scopes. Refer to OAuth 2.0 Scopes for Google APIs for more information.
No access to my drive
Google no longer allows Service Accounts created after April 15, 2025 to access mydrive. Service Accounts now only have access to shared drives.
To impersonate a user with a service account, you must enable domain-wide delegation for the service account.
Warning
Not recommended
Google recommends you avoid using domain-wide delegation, as it allows impersonation of any user (including super admins) and can pose a security risk.
To delegate domain-wide authority to a service account, you must be a super administrator for the Google Workspace domain. Then:
From your Google Workspace domain’s Admin console, select the hamburger menu, then select Security > Access and data control > API Controls.
In the Domain wide delegation pane, select Manage Domain Wide Delegation.
Select Add new.
In the Client ID field, enter the service account’s Client ID. To get the Client ID:
Open your Google Cloud Console project, then open the Service Accounts page.
Copy the OAuth 2 Client ID and use this as the Client ID for the Domain Wide Delegation.
In the OAuth scopes field, enter a list of comma-separate scopes to grant your application access. For example, if your application needs domain-wide full access to the Google Drive API and the Google Calendar API, enter: https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/calendar.
Select Authorize.
It can take from 5 minutes up to 24 hours before you can impersonate all users in your Workspace.