The Google Workspace Admin API unlocks the power to manage your organization's Google Workspace services. With Pipedream, leverage this API to automate user account management tasks, control devices, manage groups, and gain insights through reports. Simplify complex operational workflows and keep your Workspace environment finely tuned and secure without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_workspace: {
type: "app",
app: "google_workspace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_workspace.$auth.oauth_access_token}`,
},
})
},
})
Automated User Onboarding and Offboarding: Streamline the process of adding or removing users from your organization. When an employee joins or leaves, trigger a workflow to create or delete a user account, assign or revoke licenses, and update group memberships, all synced with your HR management system.
Security Monitoring and Alerts: Build a monitoring system that checks for security anomalies or compliance issues. Set up workflows to audit password changes, 2-factor authentication enrollment, or file sharing permissions. Should a discrepancy arise, automatically notify your security team or enforce policy changes.
Directory Synchronization across Cloud Services: Keep user data consistent across various cloud platforms. Whenever there's a change in a user's profile in your HR database, a Pipedream workflow can sync those updates to Google Workspace, ensuring that contact information and organizational structure are always up to date.
Emit new admin activities by selected user
Emit new admin activities by selected user
Emit new admin activities by selected user and application name
Retrieves a report of all Admin console activities done by a specific administrator. See the docs for more information
Retrieves a report of all activities for a specific event name. See the docs for more information
Retrieves a report of all activities for a specific event name and admin. See the docs for more information
Retrieves a report of all administrative activities done for an account. See the docs for more information
Google Workspace Admin uses OAuth authentication. When you connect your Google Workspace Admin account, Pipedream will open a popup window where you can sign into Google Workspace Admin and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Workspace Admin API.
Pipedream requests the following authorization scopes when you connect your account:
email
profile
https://www.googleapis.com/auth/admin.directory.user.security
https://apps-apis.google.com/a/feeds/alias/
https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/admin.directory.user.alias
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/admin.directory.device.chromeos
https://www.googleapis.com/auth/admin.directory.customer
https://www.googleapis.com/auth/admin.directory.domain
https://www.googleapis.com/auth/admin.directory.domain.readonly
https://apps-apis.google.com/a/feeds/groups/
https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.group.member
https://www.googleapis.com/auth/admin.directory.device.mobile
https://www.googleapis.com/auth/admin.directory.device.mobile.action
https://apps-apis.google.com/a/feeds/policies/
https://www.googleapis.com/auth/admin.directory.orgunit
https://www.googleapis.com/auth/admin.directory.orgunit.readonly
https://www.googleapis.com/auth/admin.directory.rolemanagement
https://apps-apis.google.com/a/feeds/calendar/resource/
https://www.googleapis.com/auth/admin.directory.resource.calendar
https://www.googleapis.com/auth/admin.directory.userschema
https://www.googleapis.com/auth/admin.reports.audit.readonly
GET
https://accounts.google.com/o/oauth2/auth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
access_type=offline
&
prompt=consent
POST
https://oauth2.googleapis.com/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://oauth2.googleapis.com/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}