Google Workspace integration
Google Workspace is Google's suite of cloud collaboration tools. The gworkspace resource type provides OAuth access to the Google Admin Directory API for managing users, groups, org units, and security settings.
The Google Workspace integration is done through OAuth. You just need to sign in from your Google account on your browser. The access will be automatically saved to the workspace as a resource.
The default OAuth scopes are:
https://www.googleapis.com/auth/admin.directory.grouphttps://www.googleapis.com/auth/admin.directory.userhttps://www.googleapis.com/auth/admin.directory.user.securityhttps://www.googleapis.com/auth/admin.directory.orgunit
The connect dialog also offers https://www.googleapis.com/auth/admin.reports.audit.readonly to read audit logs from the Admin SDK Reports API.
On self-hosted instances, integrating an OAuth API will require Setup OAuth and SSO.
Your resource can be used passed as parameters or directly fetched within scripts, flows, low-code apps and full-code apps.
Example of a Supabase resource being used in two different manners from a script in Windmill.
Integration triggers
The gworkspace resource type is also used by Google integration triggers to watch for changes in Google Drive and Google Calendar. A trigger can act through any gworkspace resource, including one connected for your scripts, as long as it grants drive.readonly, calendar.readonly and calendar.events or broader scopes.