Unify Integrations
Logo
Google Workspace

Google Workspace

Logo

3 mins READ

Google Workspace is a cloud-based productivity suite offering tools like Gmail, Docs, Drive, and Meet for seamless collaboration and communication. It integrates securely across devices, enhancing teamwork and efficiency for individuals and businesses.

Integrating Google Workspace boosts productivity by enabling real-time collaboration, secure file sharing, and streamlined communication across tools like Gmail, Drive, and Meet.

Authentication 

Before integrating Google Workspace, ensure you have the following information:

  • Connection Name: Choose a descriptive name for your Google Workspace connection to help you identify it within your application or integration settings. A meaningful name, like "MyAppGoogleWorkspaceIntegration," helps maintain organization, especially when managing multiple integrations.

  • Authentication Type: Select the type of authentication to connect to your Google Workspace account securely: OAuth, Service Account or OAuth with Client Credentials.

  • Applications: Available for every authentication type. Select the applications where you want to add this connection. Each application needs its own scopes selected in Scopes; for example, Google Admin Reports requires Admin: Reports audit readonly.

  • Scopes: Available for every authentication type. Select the scopes to include when creating the connection.

OAuth Based Authentication

The OAuth  method involves signing in with your Google account credentials on Google's Single Sign-On page, and granting the necessary permissions to UnifyWorkflows, For OAuth-based authentication, you'll need to perform the following steps to generate access credentials:

  1. Click on the Authorise button. You’ll be redirected to a Google sign-in page.

  2. If you're not already logged into Google, enter your Google account credentials and Sign in.

  3. Google will display a permissions request screen, showing the app name and the Google Workspace admin permissions we are requesting, such as managing users, groups, organizational units and licenses in your domain.

  4. Carefully review the permissions being requested. If you’re comfortable with them, click the "Allow" button.

  5. After granting access, you will be automatically redirected back to our platform, where you should see a confirmation message indicating that your Google account is now connected.

    Frame 118 (1).png
    Frame 118 (1).png

Service Account Based Authentication

OAuth with Client Credentials

Use this option to connect through your own Google OAuth app instead of the default UnifyApps app.

  1. In the Google Cloud Console, open your project and enable the Admin SDK API.

  2. Go to APIs & Services > Credentials and create an OAuth client ID of type Web application.

  3. Under Authorized redirect URIs, add the Callback URL shown in the UnifyApps connection form.

  4. Copy the client ID and client secret Google gives you.

  5. In the connection form, select OAuth with Client Credentials and enter the Client ID and Client secret.

  6. Select the Applications and Scopes you need.

  7. Click Authorize, sign in with your Google account and allow the requested permissions.

Actions

ActionDescription
Add groupAdds a group in Google Workspace
Add licenseAssigns a license in Google Workspace
Add member to groupAdds a member to a group in Google Workspace
Add organizational unitAdds an organizational unit in Google Workspace
Add roleAdds a role in Google Workspace
Add role assignmentAdds a role assignment in Google Workspace
Add userAdds a user in Google Workspace
Add user aliasAdds a user alias in Google Workspace
Delete access tokenDeletes an access token in Google Workspace
Delete app specific passwordDeletes an app-specific password in Google Workspace
Delete groupDeletes a group in Google Workspace
Delete licenseDeletes a license assigned to a user in Google Workspace
Delete member from groupDeletes a member from a group in Google Workspace
Delete mobile deviceRemoves a mobile device in Google Workspace
Delete organizational unitDeletes an organizational unit in Google Workspace
Delete roleDeletes a role in Google Workspace
Delete role assignmentDeletes a role assignment in Google Workspace
Delete userDeletes a user in Google Workspace
Delete user aliasDeletes a user alias in Google Workspace
Generate verification codesGenerates new backup verification codes for a user in Google Workspace
Get access tokenGets an access token from Google Workspace
Get app specific passwordGets an app-specific password from Google Workspace
Get groupGets a group from Google Workspace
Get group settingsGets group settings from Google Workspace
Get licenseGets a license assigned to a user from Google Workspace
Get member from groupGets a member from a group from Google Workspace
Get organizational unitGets an organizational unit from Google Workspace
Get roleGets a role from Google Workspace
Get role assignmentGets a role assignment from Google Workspace
Get userGets a user from Google Workspace
Get verification codesGets the current set of valid backup verification codes for a user from Google Workspace
Invalidate verification codesInvalidates the current backup verification codes for a user in Google Workspace
Mobile device actionTakes an action that affects a mobile device in Google Workspace
Search access tokenSearches for an access token in Google Workspace
Search app specific passwordSearches for an app-specific password in Google Workspace
Search groupSearches for a group in Google Workspace
Search licenseSearches for a license assigned to a user in Google Workspace
Search member from groupSearches for a member from a group in Google Workspace
Search mobile deviceSearches for a mobile device in Google Workspace
Search organizational unitSearches for an organizational unit in Google Workspace
Search roleSearches for a role in Google Workspace
Search role assignmentSearches for a role assignment in Google Workspace
Search userSearches for a user in Google Workspace
Search user aliasSearches for a user alias in Google Workspace
Transfer dataInserts a data transfer request in Google Workspace
Update groupUpdates a group in Google Workspace
Update group settingsUpdates group settings in Google Workspace
Update licenseReassigns a user's product SKU with a different SKU in the same product in Google Workspace
Update member to groupUpdates a member to a group in Google Workspace
Update organizational unitUpdates an organizational unit in Google Workspace
Update roleUpdates a role in Google Workspace
Update userUpdates a user in Google Workspace
Update user to adminUpdates a user to admin in Google Workspace

Triggers 

TriggerDescription
Deleted userThis trigger will be invoked when a new user is deleted
New userThis trigger will be invoked when a new user is created
Updated userThis trigger will be invoked when a new user is updated
Updated user admin statusThis trigger will be invoked when a user's admin status is toggled
User undeletedThis trigger will be invoked when a user is undeleted
FAQs

Which authentication method should I use for Google Workspace?

Choose OAuth (sign in with your own Google account and grant permissions), Service Account (server-to-server, using a GCP service account's private key and domain-wide delegation), or OAuth with Client Credentials (your own Google OAuth app). Every method also needs the Applications and Scopes you want the connection to cover.

What permissions does Google Workspace OAuth request?

After clicking Authorize you sign in to Google and see a permissions screen listing the admin permissions requested for the Applications and Scopes you selected — for example managing users, groups, organizational units and licenses — which you must allow before the connection completes.

What information is required for Google Workspace service-account authentication?

The GCP Project Service Account Email, the Private Key from the JSON key file you downloaded, and the User Email of the account to impersonate, plus the Applications and Scopes. The service account also needs domain-wide delegation configured with the required admin scopes (for example admin.directory.user, admin.directory.group).

Why is my Google Workspace connection failing?

Check that the scopes required by your selected Applications are actually granted — each application needs its own scopes (for example Google Admin Reports needs Admin: Reports audit readonly). For Service Account auth, confirm domain-wide delegation is configured for the service account's client ID with all the required scopes.