About this article
In this article, we will explain the steps required to configure the Service Account in Google necessary for Email Signatures for Google Workspace.
Setting up the service account in Google Workspace will require these main steps:
- Create a new project
- Add the Gmail API
- Create the credentials
- Create the service key
- Enable the required scopes
Prerequisites
|
Create a new project
-
Log in to https://console.cloud.google.com/ with an Admin account
- Click the Organization selection menu on the blue header bar
- Select the desired organization in the "Select from..." dropdown
- Click
NEW PROJECT
in the upper right corner of the modal window - Name the Project and change the Organization and Location, if desired
- Click
CREATE
You will be redirected back to the Dashboard screen and the Notifications dropdown will provide status.
Add the Gmail API
- Select the newly created Project from the dropdown in the blue banner bar
-
In the left-hand menu pane select the APIs & Services > Enabled APIs & services
- Click
+ ENABLE APIS AND SERVICES
in the APIs & Services menu bar
-
Scroll down and click the Gmail API tile in the Google Workspace section
-
Click
ENABLE
You will be redirected to the API/Service Details window.
Create the credentials
- Click
CREATE CREDENTIALS
in the upper right of the window of the gray information banner - Configure the credential type
- Select Gmail API from the "Select an API" dropdown, if not already selected
- Select
Application data
for "What data will be accessing?" - Select
No, I'm not using them
for "Are you planning to use this API with Compute Engine ...?"
- Click
NEXT
- Provide a name for the Service Account
- Click
CREATE AND CONTINUE
- Click
CONTINUE
(do not add roles)
- Click
DONE
(do not enter information in the user access)
You will be redirected back to the API/Service Details window.
Create the service key
- In the Credentials menu, click the Service Account link (or edit button)
- Click the
KEYS
tab on the top menu bar - Click
ADD KEY
>Create New Key
- Select
JSON
as the Format
- Click
CREATE
The Service Account key is now downloaded
|
Enable the required scopes
- Click the DETAILS tab on the menu bar
- Click the the Advanced Settings dropdown near the bottom
-
Under the Domain-wide Delegation section, copy the Client ID to the clipboard
- Click
VIEW GOOGLE WORKSPACE ADMIN CONSOLE
- In the console menu, navigate to Security (if not visible, click Show more) > Access and data control > API controls
-
Scroll down to find Domain wide delegation
-
Click
MANAGE DOMAIN WIDE DELEGATION
- Click
Add new
in the API clients menu bar
- Paste the Client ID previously copied to the clipboard
- Add the following scopes one at a time (once the first one is pasted, a new line will appear)
-
https://www.googleapis.com/auth/gmail.settings.basic
-
https://www.googleapis.com/auth/gmail.settings.sharing
-
- Click
AUTHORIZE
.
The Service Account is finalized and ready to be used.
Related articles
Comments
Article is closed for comments.