> For the complete documentation index, see [llms.txt](https://docs.xto10x.com/peoplecues/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xto10x.com/peoplecues/system-integrations/g-suite.md).

# G-Suite

1. **Access Google Cloud Console**
   1. Go to the [Google Cloud Console](https://console.cloud.google.com/).
   2. If you haven't signed up already, sign in with your Google account.
2. #### Create a Project
   1. At the top-left corner, click on the **project dropdown menu**.
   2. Create a new one by **clicking on New Project**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2F6WKMvmQCQMqkVj82MyVF%2FScreenshot%202024-09-04%20at%2011.39.49%20AM.png?alt=media&amp;token=032775a3-ae58-4263-a934-f2d53cca3edf" alt="" width="563"><figcaption></figcaption></figure>
   3. Write the Project name as **PeopleCues Integration** and **click on CREATE**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2F3Yr4qXW8QzodKR1iKy0X%2FScreenshot%202024-09-04%20at%2011.40.27%20AM.png?alt=media&amp;token=1d2ae948-bc7b-4cef-9ca1-bdb10c50952d" alt="" width="563"><figcaption></figcaption></figure>
3. **Navigate to the Service Accounts Page**
   1. In the left-hand menu, go to **IAM & Admin > Service Accounts**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FNEOPYWZXE7xqFJZaorJj%2FScreenshot%202024-09-04%20at%2011.40.59%20AM.png?alt=media&amp;token=75fca61e-1fe1-4196-8a94-c816d0d59d23" alt="" width="563"><figcaption></figcaption></figure>
   2. Click on **+ CREATE SERVICE ACCOUNT**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FK3BJ6HSHrRFnY50yZLaw%2FScreenshot%202024-09-04%20at%2011.41.07%20AM.png?alt=media&amp;token=2b9c94b3-168f-415b-a354-5a140ffa1d58" alt="" width="563"><figcaption></figcaption></figure>
4. **Configure the Service Account**

   1. **Service account name** : PeopleCues
   2. **Service account ID** : Automatically generated.
   3. **Service account description :** Service account for PeopleCues access to Google Suite.
   4. Click on **CREATE AND CONTINUE**.
   5. Skip the other 2 steps and **Click on Done**.&#x20;

   <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FMZxiYChKzKaSYXsaFqtR%2FScreenshot%202024-09-04%20at%2011.41.35%20AM.png?alt=media&amp;token=c0877f2e-b6d1-4558-b626-bf3b2919ccd3" alt="" width="563"><figcaption></figcaption></figure>
5. **Set Up Domain-Wide Delegation**
   1. After creating the service account, find it in the list and **click on the three dots under Actions**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2F11SsL8rkWi8Qc95xRWmd%2FScreenshot%202024-09-04%20at%2011.42.27%20AM.png?alt=media&amp;token=4e8a0bda-01c5-48ef-9c80-f00dc531589d" alt="" width="563"><figcaption></figcaption></figure>
   2. Click on **Manage keys, then Add key > Create new key**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FTeyQGmQv7u76GaHhr1LT%2FScreenshot%202024-09-04%20at%2011.42.38%20AM.png?alt=media&amp;token=13675acf-7752-4d00-95ed-a4a8ebce9767" alt="" width="563"><figcaption></figcaption></figure>
   3. Choose JSON as the key type and click Create. A .json file containing the private key will be downloaded. Keep this file secure as it contains sensitive information.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FisZlbGJEWp9rvj4NpjxW%2FScreenshot%202024-09-04%20at%2011.42.43%20AM.png?alt=media&amp;token=a7629638-a701-4ea0-995a-b4bb5ab34331" alt="" width="563"><figcaption></figcaption></figure>
6. **Grant Domain-Wide Delegation (in Google Admin Console)**
   1. Go to the [Google Admin Console](https://admin.google.com/).
   2. Navigate to **Security > API controls > Manage domain-wide delegation**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2Fsfrl8oqLSWND6LkHv78k%2FScreenshot%202024-09-04%20at%2011.45.20%20AM.png?alt=media&amp;token=546b6078-e48e-4ed6-a370-aa328b153242" alt="" width="563"><figcaption></figcaption></figure>
   3. Click on **Add new**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FnrhplXUFVEEdVngjP8gl%2FScreenshot%202024-09-04%20at%2011.45.42%20AM.png?alt=media&amp;token=f44208cb-f7e5-4c47-90e8-ddec93e4dcff" alt="" width="563"><figcaption></figcaption></figure>
   4. Enter the client ID from the service account JSON file you downloaded earlier in **step 5.3**.
   5. In the OAuth scopes field, enter the scopes your app needs
      1. For Calendar Access, add **<https://www.googleapis.com/auth/calendar.readonly>**.

         <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FQLOjcRPy6q4wpq7rNRhs%2FScreenshot%202024-09-04%20at%2011.47.17%20AM.png?alt=media&amp;token=4543fc82-5005-4f20-9b82-a6bde99aaa94" alt="" width="563"><figcaption></figcaption></figure>
      2. For google suite reports access which includes gmail and google drive analytics report access, add **<https://www.googleapis.com/auth/admin.reports.usage.readonly>**.
   6. Click **Authorize**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FGLlLqOcpeapxLRV24q4T%2FScreenshot%202024-09-04%20at%2012.04.12%20PM.png?alt=media&amp;token=6b459c4b-3259-498c-9257-efa6a7617433" alt="" width="563"><figcaption></figcaption></figure>
7. **Enable API Access**
   1. Go to the [Google Cloud Console](https://console.cloud.google.com/) and from the top-left corner, **click** on the project dropdown menu.
   2. From the left dropdown menu, Navigate to **APIs & Services -> Enabled APIs & Services**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FbFOOPAald7kpoqlXvtEo%2FScreenshot%202024-09-04%20at%2011.55.47%20AM.png?alt=media&amp;token=19fbe383-7fed-4373-8ef7-16ab1f5b5840" alt="" width="563"><figcaption></figcaption></figure>
   3. Click on **Enable APIs and Services**.

      <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FGUhcJTqNLkcxQI5VVPNf%2FScreenshot%202024-09-04%20at%2011.55.53%20AM.png?alt=media&amp;token=6f90df54-240f-48c6-b89d-7c29cc22c172" alt="" width="563"><figcaption></figcaption></figure>
   4. Select the Services for which the API access needs to be enabled.
      1. For Calendar, Search and click on **Google Calendar API**, then Click on **Enable**.

         <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FowBO2mqkn8iwz8BbIqMA%2FScreenshot%202024-09-04%20at%2011.56.07%20AM.png?alt=media&amp;token=01768b0e-f80a-482e-9e0e-bda074a9851b" alt="" width="563"><figcaption></figcaption></figure>

         <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2Fjlq34isZ0UvvWnRRzQzu%2FScreenshot%202024-09-04%20at%2011.56.01%20AM.png?alt=media&amp;token=f9f03a95-87ce-4abc-97ba-da700cf866c0" alt="" width="563"><figcaption></figcaption></figure>
      2. For Gmail and Drive statistics of User. Search and click on **Admin SDK API**, then Click on **Enable**.

         <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2F2OA23S6PTqfUZy9g0gJG%2FScreenshot%202024-09-04%20at%2012.03.11%20PM.png?alt=media&amp;token=6b96e6ee-99ff-4d47-a577-bb832d4a9f94" alt="" width="563"><figcaption></figcaption></figure>

         <figure><img src="https://1290269951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0PAFNN3Lm7vmMuNr7Lhn%2Fuploads%2FYhifUkplu6GkjZG1yn2E%2FScreenshot%202024-09-04%20at%2012.03.18%20PM.png?alt=media&amp;token=ec3123c8-3b15-4697-bbe8-a7972c9cb7f0" alt="" width="563"><figcaption></figcaption></figure>
8. **Integration information**
   1. Kindly provide the json file key downloaded in step 5.3.
   2. Also provide the Admin user email for the google suite.
