Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • API, CLI, and SDK Documentation
  • REST API Documentation
  • Connections Using REST API
  • Platform Specific REST API Documentation
  • Google

Google Workspace (REST API)

Create a Google Workspace connection using the DryvIQ REST API.

Written by Andrea Harvey

Updated at April 29th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Insights
    Prebuilt Insights Custom Insights
  • Content
  • Accounts
  • Activity Log
  • Content Scans
  • Migrations
    Migration Jobs Migration Reports Maps Flagged Items Migration Tools
  • Connections
    Supported Platform Connections Creating Connections Connection Maintenance Connection Pools
  • Entity Types
    DryvIQ Available Entity Types Custom Entity Types Entity Type Maintenance
  • Action Sets
    Creating Action Sets Action Sets Maintenance
  • Settings
    License Performance Notifications Extensions Entity Types Settings Display Settings Configuration
  • API, CLI, and SDK Documentation
    REST API Documentation Command-line Interface SDK Development
  • POC Offering
  • Release Notes
+ More

Table of Contents

Creating Connection Creating a Connection for Multiple Domains

Creating Connection

The sample code below shows how to create a Google Workspace connection that uses impersonation. Make sure the following fields are set accordingly.

  • The id should be google-suite.
  • The client_email should be the Google Workspace Admin Service Account.
  • The subject should be the email for the user you would like to impersonate.
POST {{url}}v1/connections

{
    "name": "Google Workspace Service Account (Admin Connection)",
    "type": "service_account",
    "project_id": "your-project-id",
    "platform": {
        "id": "google-suite"
    },
    "auth": {
        "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\n",
        "client_email": "jd-service@your-project-id.iam.gserviceaccount.com",
        "client_id": "12345678901234567890",
        "subject": "jdeveloper@example.com,"
        "delete_behavior": "permanent"
    }
}

Creating a Connection for Multiple Domains

DryvIQ supports creating a connection with access to multiple domains within an enterprise.

  • Ensure to use an Admin account that has full access to the corresponding domains.
  • Omit the domain name when creating the connection.
  • Use the admin account as the subject (subject email) when creating the connection.
google workspace rest api api connection

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Google Drive
  • Google Shared Drives (REST API)
  • Connection Management Using REST API

Copyright 2025 – DryvIQ, Inc.

Knowledge Base Software powered by Helpjuice

Expand