# How to create a Gmail Service account

Applies to: QLM Pro v17

***

A Gmail Service account is required when sending emails from the QLM License Server, the QLM Portal, or the QLM Self Help.&#x20;

To create a Gmail service account you must have a Google Workspace (G Suite) account.

Go to the [Google Cloud Platform Console](https://console.developers.google.com/) and sign in as an administrator.

* From the main dashboard, click **Create Project**.

![Gmail1.jpg](https://ebstalimited.zendesk.com/hc/article_attachments/360010817058/Gmail1.jpg)

* Enter a project name and select your organization

<img src="https://support.soraco.co/hc/article_attachments/12908729649172" alt="mceclip0.png" height="288" width="473">

* Select your new project and click **+ Enable APIS and Services**

![mceclip2.png](https://support.soraco.co/hc/article_attachments/12908785952660)

&#x20;

* Enter Gmail in the search field, select the Gmail API option then click **Enable**.

![mceclip3.png](https://support.soraco.co/hc/article_attachments/12908788353044)

&#x20;

* To create the service account, select Service Accounts as shown below:

![mceclip5.png](https://support.soraco.co/hc/article_attachments/12908833744020)

* Click Create Service Account

![mceclip6.png](https://support.soraco.co/hc/article_attachments/12908886892948)

&#x20;

* Enter a name for your account then click Create and Continue

![mceclip7.png](https://support.soraco.co/hc/article_attachments/12908890675348)

* Leave all the default options for the Service Account Details and click Done.

![mceclip8.png](https://support.soraco.co/hc/article_attachments/12908927312020)

* Copy the Client ID
* Select Manage Keys as shown below:

![mceclip14.png](https://support.soraco.co/hc/article_attachments/12909135592852)

* Click Add Key / Create new key

![mceclip10.png](https://support.soraco.co/hc/article_attachments/12908934725524)

* Select JSON for the key format and click Create

![mceclip11.png](https://support.soraco.co/hc/article_attachments/12908987151636)

* Store the generated JSON file securely. You will need it later on when configuring QLM.
* &#x20;
* Next, you must enable service accounts with Gmail.&#x20;
* Login to the [GSuite Admin Console](https://admin.google.com/).
* Scroll down to locate the **Security** item and select it

![mceclip12.png](https://support.soraco.co/hc/article_attachments/12909030632212)

* Scroll down to locate the **API Controls** item and select it
* Click Manage Domain Wide Delegation

![mceclip13.png](https://support.soraco.co/hc/article_attachments/12909034919956)

* Click Add New
* Enter the Client ID that you copied earlier
* Set the authorization scope to: <https://www.googleapis.com/auth/gmail.send>
* Click Authorize

<img src="https://support.soraco.co/hc/article_attachments/12909290127636" alt="mceclip15.png" height="350" width="394">


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/email-framework/configuration/sending-emails-using-the-gmail-api/how-to-create-a-gmail-service-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
