Skip to content

Google Workspace Setup

Junto connects to Google Workspace through the Google Admin SDK and Gmail API, giving the AI agent access to users, groups, organizational units, licenses, mobile devices, and email settings across your customer domains.

Prerequisites

  • A Google Workspace account with Super Admin access for the customer's domain
  • The customer domain must have Google Workspace (Business, Enterprise, or Education)

Connect via OAuth

  1. In Junto, go to the company's Integrations page.
  2. Find Google Workspace and click Connect.
  3. Authenticate with Super Admin credentials for the customer's domain.
  4. Review and accept the requested permissions.
  5. After authorization, you are redirected back to Junto with an active connection.

The connection is managed automatically from there, including token refresh.

What the AI Agent Can Do

Once connected, the AI agent can help manage the customer's Google Workspace environment across the following areas.

User Management

ToolDescriptionRisk Level
List UsersList all users in the domain with optional filteringLow
Get UserView user details including name, email, org unit, admin status, and last loginLow
Create UserCreate a new user accountMedium
Update UserUpdate user profile propertiesMedium
Suspend UserSuspend a user account, preventing sign-inHigh
Unsuspend UserReactivate a suspended user accountMedium
Reset PasswordReset a user's passwordHigh
Delete UserPermanently delete a user accountHigh

Group Management

ToolDescriptionRisk Level
List GroupsList all groups in the domainLow
Get GroupView group detailsLow
Create GroupCreate a new groupMedium
Update GroupUpdate group propertiesMedium
List Group MembersView all members of a groupLow
Add Group MemberAdd a user to a groupMedium
Remove Group MemberRemove a user from a groupMedium
Delete GroupPermanently delete a groupHigh

Organizational Units

ToolDescriptionRisk Level
List Org UnitsList organizational units in the domainLow
Move User to Org UnitMove a user to a different organizational unitMedium

Email Aliases

ToolDescriptionRisk Level
List User AliasesList email aliases for a userLow
Add User AliasAdd an email alias for a userMedium
Delete User AliasRemove an email alias from a userMedium

Licensing

ToolDescriptionRisk Level
List LicensesList all license assignments for a product, optionally filtered by SKULow
Get User LicenseCheck if a user has a specific licenseLow
Assign LicenseAssign a Google Workspace license to a userMedium
Remove LicenseRemove a license from a userMedium

Security & Access Control

ToolDescriptionRisk Level
List User TokensList OAuth tokens issued to third-party applications for a userLow
Revoke User TokenRevoke a third-party application's access token for a userHigh

Mobile Device Management

ToolDescriptionRisk Level
List Mobile DevicesList mobile devices managed by Google WorkspaceLow
Mobile Device ActionPerform actions on a device (wipe, block, approve, account wipe)High

Gmail Settings

ToolDescriptionRisk Level
Set Email SignatureSet or update a user's email signatureMedium
Get Vacation SettingsView a user's auto-reply/vacation settingsLow
Set Vacation SettingsConfigure a user's auto-reply/vacation settingsMedium

High-impact actions (account deletion, password resets, device wipes, token revocation, and user suspension) always require technician approval before the agent proceeds.

Troubleshooting

  • OAuth connection fails -- Ensure you are signing in as a Super Admin of the customer's Google Workspace domain.
  • Missing data -- Some features may require specific Google Workspace editions (Business, Enterprise, Education).
  • Token expired -- The integration refreshes tokens automatically. If the connection shows an error, disconnect and reconnect.
  • Mobile device actions fail -- Ensure the device is enrolled in Google Workspace mobile management.