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 #
- Enter your Engini account at https://app.engini.io.
- Navigate to Connections page by clicking on the Connections on the left sidebar or by clicking here.
- Click on the Add connection option located at the topbar.
- Choose Google WorkSpace option from the available applications.
- Enter the following details in the “Add Connection” form:
- Connection name
- Fields automatically populated post connecting to a Google account include:
- Email: Used as the primary email address associated with the account.
- Display Name: Employed when utilizing the email sending activity, enabling customized sender names.
- Access Token: A token for authorization to access Google services.
- Click on the “Sign in with Google” button.
- Sign into your Google account.
- 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.
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.
- User key – Enter the user’s primary email, alias email, or unique user ID to specify which user you want to retrieve.
- Projection – Choose the level of detail for the user data you want to retrieve (basic or full).
- 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.
- Product Id – Enter the unique identifier of the product for which you want to retrieve the license.
- SKU Id – Enter the SKU (Stock Keeping Unit) associated with the product to specify the license.
- 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.
- Group Id – Enter the unique identifier of the group whose members you want to retrieve.
- Include Derived Membership – Choose whether to include indirect members, such as those from nested groups. (True or False).
- Roles – Enter the specific roles to filter members by their roles within the group. OWNER, MEMBER, MANAGER).
- Filter -The filter option allows you to specify conditions to narrow down the retrieved group members based on certain fields.
- 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.
- Include Derived Membership – Choose whether to include indirect members, such as those from nested groups. (True or False).
- Customer – Enter the customer ID to specify which customer account’s groups you want to retrieve.
- 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.
- Customer – Enter the unique customer ID to retrieve users from a specific Google Workspace account.
- Domain name – Enter the domain name to retrieve users associated with that domain.
- Projection – Choose the level of detail for the user data you want to retrieve (basic or full).
- Order By – Choose the field by which to sort the users, (Email, Family Name, Given Name).
- Sort Order – Choose the sort order (Ascending or Descending).
- Show Deleted – Choose whether to include deleted users in the results (true/false).
- View Type – Choose the scope of data visibility, such as admin-only information (Admin View) or publicly available data within the domain (Domain Public).
- Filter – You can add filters to retrieve only the users that meet specific conditions (such as by Address, Country, Postal Code, Email, or other user attributes).
- 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.
- Customer Id – Enter the unique customer ID to retrieve the list of users for that customer.
- 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.
- Company Id -Enter the unique ID of the company to specify which organization users to retrieve.
- Product Id – Enter the unique ID of the product to retrieve users with licenses for that specific product.
- 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.
- Group Id– Enter the unique ID of the group where you want to add the new member.
- Fields- 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.
- Product Id – Enter the unique ID of the product.
- SKU Id – Enter the SKU ID to specify the version of the product.
- 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.
- Add Field -Allows you to add additional information or properties for the group you’re creating.
- adminCreated – Indicates if the group was created by an admin.
- nonEditableAliases[] – Provides a list of alternate email addresses associated with the group that cannot be changed.
- aliases – Enter alternate email addresses for the group.
- description – Enter a description for the group.
- directMembersCount – Shows the number of direct members in the group.
- email – Enter the group’s email address.
- etag – A unique identifier for the group (used internally).
- id – The unique ID for the group (automatically generated).
- kind – Specifies the type of group.
- name – Enter the name of the group.
Create User #
This activity creates a new user in Google Workspace.
- primary Email – Enter the user’s primary email address.
- password – Set a password for the user.
- familyName – Enter the user’s last name.
- givenName – Enter the user’s first name.
- Add Field– Allows you to add extra details or attributes for the user you are creating, such as emails, gender, externalIds, phones, addresses, and organizations. There are many other attributes available to further customize the user’s profile.
- emails – Add extra email addresses for the user.
- gender – Specify the user’s custom gender identity.
- externalIds – Add external IDs associated with the user.
- phones – Add phone numbers for the user.
- addresses – Provide physical addresses for the user.
- organizations – Specify the user’s organization details.
Update Group #
This activity allows you to update the details of an existing group in Google Workspace.
- Group Id – Enter the unique ID of the group you want to update.
- 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.
- id – Enter the unique ID or email of the user you want to update.
- 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.
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.
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.
- Product Id– Enter the unique ID of the product from which you want to remove the license.
- SKU Id – Enter the SKU (Stock Keeping Unit) ID to specify the version of the product license to be removed.
- 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.
- Group Id – Enter the unique ID of the group from which you want to remove the member.
- Member Id – Enter the unique ID or email of the member you want to remove from the group.
Initialize Object Array #
This activity allows you to create an array of objects to manage and process multiple users, groups, or licenses in bulk operations within Google Workspace.
- Variable name – Enter the name of the variable that will store the array of objects.
- Object Element Type – Select the type of objects that will be included in the array.
- addresses – An array of address objects.
- emails – An array of email objects.
- externalIds – An array of external ID objects.
- phones – An array of phone number objects.
- organizations – An array of organization objects.
- websites – An array of website objects.
- languages – An array of language objects.
Append to Object Array #
This activity adds an item to an existing array of objects in Google Workspace.
Variable – Select the array where you want to add the new item.