Access Google Workspace Admin SDK via the Google Admin API with OAuth authentication. Manage users, groups, domains, devices, and directory data.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Admin API access yourself.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Google Admin |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Google Admin |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Google Admin SDK │
│ (User Chat) │ │ (OAuth) │ │ (REST) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Google Admin │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ Google │
│ File │ │ Auth │ │ Workspace│
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Admin again."
# List all users in the domain
clawlink_call_tool --tool "google_admin_list_all_users" --params '{}'
# Get a specific user
clawlink_call_tool --tool "google_admin_get_a_user" --params '{"user_key": "user@example.com"}'
# List groups
clawlink_call_tool --tool "google_admin_list_all_groups" --params '{}'
All Google Admin tool calls are authenticated automatically by ClawLink using the user's connected Google Workspace admin account.
No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Admin API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for google-admin in the list.
clawlink_list_tools --integration google-admin
Response: Returns the live tool catalog for Google Admin.
If Google Admin tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration google-admin| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_admin_list_all_users | List all users in the domain | Read |
google_admin_get_a_user | Get user details by email or ID | Read |
google_admin_create_user | Create a new user account | Write |
google_admin_update_user | Update user fields (name, departments, etc.) | Write |
google_admin_delete_user | Delete a user account | Write |
google_admin_add_user_alias | Add an email alias to a user | Write |
google_admin_turn_off_2_step_verification | Disable 2SV for a user (admin only) | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_admin_list_all_groups | List all groups in the domain | Read |
google_admin_get_group | Get group details | Read |
google_admin_create_group | Create a new group | Write |
google_admin_delete_group | Delete a group | Write |
google_admin_add_user_to_group | Add a user to a group | Write |
google_admin_remove_user_from_group | Remove a user from a group | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_admin_list_all_organization_units | List all organization units | Read |
google_admin_get_organization_unit | Get OU details | Read |
google_admin_move_users_and_printers_to_ou | Move users or printers to an OU | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_admin_list_all_devices | List all devices in the domain | Read |
google_admin_get_device | Get device details | Read |
google_admin_update_device | Update device status or attributes | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_admin_get_domain_info | Get domain information | Read |
google_admin_list_domains | List all domains in the account | Read |
clawlink_call_tool --tool "google_admin_list_all_users" \
--params '{
"customer": "my_customer",
"max_results": 100
}'
clawlink_call_tool --tool "google_admin_create_user" \
--params '{
"primary_email": "newuser@example.com",
"name": {
"given_name": "New",
"family_name": "User"
},
"password": "secure-password-here"
}'
clawlink_call_tool --tool "google_admin_add_user_to_group" \
--params '{
"group_email": "engineering@example.com",
"user_email": "newuser@example.com",
"role": "MEMBER"
}'
clawlink_call_tool --tool "google_admin_list_all_groups" \
--params '{}'
clawlink_list_integrations to confirm Google Admin is connected.clawlink_list_tools --integration google-admin to see the live catalog.clawlink_search_tools with a short query and integration google-admin.┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → search → describe → call │
│ │
│ Example: List users → Get user → Show details │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ list → get → describe → preview → confirm → call │
│ │
│ Example: Describe tool → Preview user creation │
│ → User approves → Execute create │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.customer parameter for user queries can be my_customer or the specific customer ID.| Status / Error | Meaning |
|---|---|
| ---------------- | --------- |
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-admin. |
| Missing connection | Google Admin is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-admin. |
404 Not Found | User, group, or resource does not exist in the domain. |
403 Forbidden | The connected account is not a Workspace admin or lacks permission for this operation. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.google-admin.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本