> ## Documentation Index
> Fetch the complete documentation index at: https://docs.engini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Workspace

Learn how to connect Engini to Google WorkSpace.

Using Engini’s Google WorkSpace activities, you can check for new sent emails, send emails and include attachments seamlessly.

To get started with the gmail app, create an free account at Google.com or use your organizational google mailbox.

## Getting Started with Google WorkSpace

### Prerequisites

* An Google WorkSpace account.

### Add a connection to Google WorkSpace in Engini

1. Enter your Engini account at [https://app.engini.io.](https://app.engini.io/)

2. Navigate to Connections page by clicking on the Connections on the left sidebar or by clicking [here.](https://app.engini.io/connections)

   <img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/G4vg3WkFm_GYDJNCmPq59_home-page-connector.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=31ecbeb42a309d09cbbce45b3e99221f" alt="" width="1920" height="1080" data-path="help/assets/apps/google-workspace/G4vg3WkFm_GYDJNCmPq59_home-page-connector.png" />

3. Click on the "New Integration" option located at the top bar.

   <img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/Tc8OwXyO6hXXNLrpdVzA0_untitled-design-34.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=99e50ece6ec026d87b1c5c5c718fd5ff" alt="" width="1913" height="906" data-path="help/assets/apps/google-workspace/Tc8OwXyO6hXXNLrpdVzA0_untitled-design-34.png" />

4. Choose Google WorkSpace option from the available applications.

   <img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/nKVQvkCAD4etN0ZPvqP8N_untitled-design-62.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=b81b969bf00ed27faf259242b4a80da7" alt="" width="1920" height="1080" data-path="help/assets/apps/google-workspace/nKVQvkCAD4etN0ZPvqP8N_untitled-design-62.png" />

5. Enter the following details in the “New Integration” form and press Save:

**Note** : There are two different authentication methods available, and the required fields differ depending on the option you choose.
Please follow the relevant instructions based on your selected method.

### OAuth2

This method uses a predefined authentication flow. You don’t need to provide a Client ID or Client Secret, you simply sign in using your account.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/0AyRL8Lp-l8dDKLGahR8f_2-72.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=14a213132c635c3196e6c6c22a1d1440" alt="" width="1920" height="1080" data-path="help/assets/apps/google-workspace/0AyRL8Lp-l8dDKLGahR8f_2-72.png" />

1. *Connection name* – Enter unique identifier for the connection within Engini.
2. *Authentication Method –* Select ***OAuth2***.

* Fields automatically populated post connecting to a Google account include:
  3\. *Email* - Used as the primary email address associated with the account.
  4\. *Display Name* - Employed when utilizing the email sending activity, enabling customized sender names.
  5\. *Access Token* -  A token for authorization to access Google services.

3. Click on the “Sign in with Google” button.
   * Sign into your Google account.
4. Click on the save button to save the connection.

### *Custom OAuth2*

This method requires you to configure your own OAuth2 credentials. You must provide both a valid Client ID and Client Secret obtained from your Google Cloud Console project.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/7zyFB2vw23OKcuXX1WNQ9_2-71.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=674b972163b959578df2ec57d01a141f" alt="" width="1920" height="1080" data-path="help/assets/apps/google-workspace/7zyFB2vw23OKcuXX1WNQ9_2-71.png" />

1. *Connection name* – Choose a unique identifier for the connection within Engini.
2. *Authentication Method –* Select ***Custom OAuth2*** when connecting to Google services using a custom OAuth client.
   To learn more about this authentication, enter here.
3. *client ID* – Enter the **Client ID** from the OAuth 2.0 credentials in the Google Cloud project.
4. *client\_secret* – Enter the **Client Secret** from the same set of OAuth 2.0 credentials in the Google Cloud project.
5. *Access Token* – Automatically populated post connecting to a your Google account.
6. *Refresh Token -* Automatically populated post connecting to a your Google account.
7. *Sign in with Google –* Click **Sign in with Google** and log in with the Google account used to create the project in Google Cloud. This ensures access to the correct OAuth credentials and permissions.
8. Click on the **Save** button to save the connection.

## Actions

### Get Group

This activity retrieves information about a specified Google Workspace group, including details such as the group’s email address and membership settings.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/_sHoeLEyAyXtSlajrbDxQ_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=e53dea3724de67798b9826d47fc3c6f7" alt="" width="778" height="207" data-path="help/assets/apps/google-workspace/_sHoeLEyAyXtSlajrbDxQ_image.png" />

*Group Id* – Enter the Group id of the Group you want to get.

### Get User

This activity retrieves details about a specified user, including information such as their email address, account status, and organizational unit within Google Workspace.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/mhKVzSXQv0GOTvbfGuGTW_2025-12-24-101737.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=6ea1643c024e6c652ae7431d7ec03829" alt="" width="778" height="445" data-path="help/assets/apps/google-workspace/mhKVzSXQv0GOTvbfGuGTW_2025-12-24-101737.png" />

1. *User key* – Enter the user’s primary email, alias email, or unique user ID to specify which user you want to retrieve.
2. *Projection* – Choose the level of detail for the user data you want to retrieve (basic or full).
3. *View Type* – Choose the scope of data visibility, such as admin-only information (Admin View) or publicly available data within the domain (Domain Public).

### Get a user’s License by product SKU

This activity retrieves a user’s license details for a specific product using the product ID and SKU.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/0nIxjx2RyN5rPSZiPtscC_image.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=5713809b43226dc144cd7da90f0e7838" alt="" width="779" height="441" data-path="help/assets/apps/google-workspace/0nIxjx2RyN5rPSZiPtscC_image.png" />

1. *Product Id* – Enter the unique identifier of the product for which you want to retrieve the license.
2. *SKU Id* – Enter the SKU (Stock Keeping Unit) associated with the product to specify the license.
3. *User Id* – Enter the unique user ID for the user whose license you want to retrieve.

### Get Group Members

This activity retrieves the list of members belonging to a specified group.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/vdqL0IEr5j8hPZz3UE1yt_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=55b7f8cb221c3707d14145829521fd3e" alt="" width="778" height="664" data-path="help/assets/apps/google-workspace/vdqL0IEr5j8hPZz3UE1yt_image.png" />

1. *Group Id* – Enter the unique identifier of the group whose members you want to retrieve.
2. *Include Derived Membership* – Choose whether to include indirect members, such as those from nested groups. (True or False).
3. *Roles* – Enter the specific roles to filter members by their roles within the group. OWNER, MEMBER, MANAGER).
4. *Add Filters* - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, [click here](/help/workflows/workflow-editor#add-filters).
5. *Top N* – You can set the maximum number of group members that will be returned during one workflow cycle (default = all members).

### Get Groups

This activity retrieves a list of groups in Google Workspace, providing details such as group names, email addresses, and descriptions.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/CaWKemLCARsb8iZWoWHkO_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=630e0e3b7422c6f729124500e8877877" alt="" width="778" height="448" data-path="help/assets/apps/google-workspace/CaWKemLCARsb8iZWoWHkO_image.png" />

1. *Include Derived Membership* – Choose whether to include indirect members, such as those from nested groups. (True or False).
2. *Customer* – Enter the customer ID to specify which customer account’s groups you want to retrieve.
3. *Domain* – Enter the domain name to retrieve all groups associated with that domain.

### Get Users

This activity retrieves a list of users from a specified domain or customer account.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/kOrbtcxDFTvFfppow21t2_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=a3bf74672c85470c8d813031d519f89f" alt="" width="522" height="764" data-path="help/assets/apps/google-workspace/kOrbtcxDFTvFfppow21t2_image.png" />

1. *Customer* – Enter the unique customer ID to retrieve users from a specific Google Workspace account.
2. *Domain name* – Enter the domain name to retrieve users associated with that domain.
3. *Projection* – Choose the level of detail for the user data you want to retrieve (basic or full).
4. *Order By* – Choose the field by which to sort the users, (Email, Family Name, Given Name).
5. *Sort Order* – Choose the sort order (Ascending or Descending).
6. *Show Deleted* – Choose whether to include deleted users in the results (true/false).
7. *View Type* – Choose the scope of data visibility, such as admin-only information (Admin View) or publicly available data within the domain (Domain Public).
8. *Add Filters* – Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, [click here](/help/workflows/workflow-editor#add-filters).
9. *Top N* – You can set the maximum number of users that will be returned during one workflow cycle (default = all users).

### List all users assigned licenses

This activity retrieves a list of users who have been assigned licenses for a specific product.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/NQg2iHKHpJhdc8iCXtmAI_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=49c06869785707b34940a3c662365526" alt="" width="777" height="325" data-path="help/assets/apps/google-workspace/NQg2iHKHpJhdc8iCXtmAI_image.png" />

1. *Customer Id* – Enter the unique customer ID to retrieve the list of users for that customer.
2. *Product Id* – Enter the product ID to filter only the users who have a license for that specific product.

### List all users assigned licenses for product SKU

This activity retrieves a list of users who have have licenses for a specific version of a product.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/uaX9OdqsjeH_D7bF9lSsX_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=d0be68736a1159c31fde3066e1d4b765" alt="" width="777" height="443" data-path="help/assets/apps/google-workspace/uaX9OdqsjeH_D7bF9lSsX_image.png" />

1. *Company Id* - Enter the unique ID of the company to specify which organization users to retrieve.
2. *Product Id* – Enter the unique ID of the product to retrieve users with licenses for that specific product.
3. *SKU Id* – Enter the SKU (Stock Keeping Unit) ID, which represents the specific version or type of the product.

### Add member to Group

This activity adds a new member to a specified Google Workspace group.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/boshoTEEQD0_HOpbdbep1_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=26cf6fb0b5ba175d5cd379ac5628aea7" alt="" width="781" height="390" data-path="help/assets/apps/google-workspace/boshoTEEQD0_HOpbdbep1_image.png" />

1. *Group Id* – Enter the unique ID of the group where you want to add the new member.
2. *Field*s - Allows you to specify additional details for the new group member. (Email, Role, Status ,etc.)

### Assign a License

This activity allows to assigns a specific product license to a user within Google Workspace.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/5vQIdWlkR2y1E9JU6nhOP_image.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=3cbde86e183935c355556fdb1c32e34b" alt="" width="779" height="444" data-path="help/assets/apps/google-workspace/5vQIdWlkR2y1E9JU6nhOP_image.png" />

1. *Product Id* – Enter the unique ID of the product.
2. *SKU Id* – Enter the SKU ID to specify the version of the product.
3. *User Id* – Enter the user’s email or ID to assign the license.

### Create Group

This activity creates a new Google Workspace group with specific settings.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/-AXXG68rf73Uc_X-bFACX_image.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=cec8327048ac87538ef1eb1492642b32" alt="" width="776" height="273" data-path="help/assets/apps/google-workspace/-AXXG68rf73Uc_X-bFACX_image.png" />

* *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Create User

This activity creates a new user in Google Workspace.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/LwTp18mBOQKQE9gOYWGsm_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=8a30a421a09a5d6fd3a66084c55422b9" alt="" width="782" height="741" data-path="help/assets/apps/google-workspace/LwTp18mBOQKQE9gOYWGsm_image.png" />

1. *primary Email* – Enter the user’s primary email address.
2. *password* – Set a password for the user.
3. *familyName* – Enter the user’s last name.
4. *givenName* – Enter the user’s first name.
5. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Update Group

This activity allows you to update the details of an existing group in Google Workspace.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/1gq81GcA2H33K-OOgH4Lc_image.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=d4ee5dace0e2cc728cbc9aca72a12e18" alt="" width="781" height="391" data-path="help/assets/apps/google-workspace/1gq81GcA2H33K-OOgH4Lc_image.png" />

1. *Group Id* – Enter the unique ID of the group you want to update.
2. *Fields* – Allows you to include additional properties or information when updating a group.
   * *adminCreated* – Specify whether the group was created by an admin.
   * *aliases* – Update the alternate email addresses (aliases) for the group.
   * *description* – Update the group’s description.
   * *directMembersCount* – Shows the updated number of direct members in the group.
   * *email* – Update the group’s email address.
   * *etag* – A unique identifier for the group (used internally).
   * *kind* – The type of group (used internally).
   * *name*: Update the group’s name.
   * *nonEditableAliases* – Lists aliases that cannot be edited.

### Update User

This activity allows you to update the details of an existing user in Google Workspace.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/wKUPoQpHSW6E5LTdN2LCw_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=d9551cf9d5cbf4516c51ca185d0c25d9" alt="" width="778" height="383" data-path="help/assets/apps/google-workspace/wKUPoQpHSW6E5LTdN2LCw_image.png" />

1. *id* – Enter the unique ID or email of the user you want to update.
2. *Fields* – Allows you to add additional fields to update specific details about the user.
   * *addresses* – Update the user’s physical addresses, such as home or work.
   * *agreedToTerms* – Specify whether the user has agreed to the terms of service.
   * *aliases* – Add or update alternate email addresses for the user.
   * *changePasswordAtNextLogin* – Require the user to change their password upon their next login.
   * *emails* – Update the user’s email addresses.
   * *customSchema* – Add or modify custom fields for the user based on your organization’s specific needs.
   * *externalIds* – Add or update external IDs linked to the user.
   * *gender* – Update the user’s gender information.
   * *phones* – Add or update the user’s phone numbers.
   * *organizations* – Update the user’s organization details.

### Delete Group

This activity permanently removes a group from the Google Workspace domain.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/MH4rCldt6mhgrtCca-pxY_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=973267d209595e3199e98fbde818efb5" alt="" width="777" height="200" data-path="help/assets/apps/google-workspace/MH4rCldt6mhgrtCca-pxY_image.png" />

*Group Key* – Enter the group’s email address or unique group ID to specify which group to delete.

### Delete User

This activity permanently removes a user from the Google Workspace domain.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/4zbjuVwclA3NKVRKhBPca_image.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=b4ad50f0ec2de24ebb0c06154667b6b7" alt="" width="777" height="220" data-path="help/assets/apps/google-workspace/4zbjuVwclA3NKVRKhBPca_image.png" />

*User Key* – Enter the user’s primary email address, alias email, or unique user ID to identify which user to delete.

### Remove a License

This activity removes a product license from a specified user in Google Workspace.

<img src="https://mintcdn.com/engini/3aYELRM0HexCJm7D/help/assets/apps/google-workspace/BgI42Iw0QMXqArMvFSBJX_image.png?fit=max&auto=format&n=3aYELRM0HexCJm7D&q=85&s=5f4dece5ad3328449392b5301ded57e1" alt="" width="778" height="448" data-path="help/assets/apps/google-workspace/BgI42Iw0QMXqArMvFSBJX_image.png" />

1. *Product Id*– Enter the unique ID of the product from which you want to remove the license.
2. *SKU Id* – Enter the SKU (Stock Keeping Unit) ID to specify the version of the product license to be removed.
3. *User Id* – Enter the unique ID or email of the user whose license you want to remove.

### Remove Member from Group

This activity removes a specified member from a Google Workspace group.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/CSag-z1SPCchdsrHgg1VI_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=5e3e76da8b06884dcc51790a96f4e1b3" alt="" width="778" height="327" data-path="help/assets/apps/google-workspace/CSag-z1SPCchdsrHgg1VI_image.png" />

1. *Group Id* – Enter the unique ID of the group from which you want to remove the member.
2. *Member Id* – Enter the unique ID or email of the member you want to remove from the group.

### Initialize Object Array

This activity initializes an object array in Google Workspace and stores a single structured entry based on the selected object type (e.g. addresses, emails).

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/eR0ZdEImHwG0rzvPEB-XO_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=bed7e2c80ba5e270a1f6c1a089547e2a" alt="" width="777" height="509" data-path="help/assets/apps/google-workspace/eR0ZdEImHwG0rzvPEB-XO_image.png" />

1. *Variable Name -* Enter the name of the variable that will hold the initialized object array. This name will be used throughout the workflow whenever you refer to this object array.
2. *Object Element Type -* This field defines the type of data the array will store, such as addresses and emails .The selected type determines the structure of the array and its use in subsequent actions.
3. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Append to Object Array

This activity adds an item to an existing array of objects in Google Workspace.

<img src="https://mintcdn.com/engini/7xJ9T-bR6veyRLSd/help/assets/apps/google-workspace/xWxlgaLwm4edzEXxIWx2N_image.png?fit=max&auto=format&n=7xJ9T-bR6veyRLSd&q=85&s=bc55b3375e9eb9a8a46df3d879ae0110" alt="" width="779" height="207" data-path="help/assets/apps/google-workspace/xWxlgaLwm4edzEXxIWx2N_image.png" />

*Variable* – Select the array where you want to add the new item.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.