← 返回
未分类 中文

Google Admin

Manage Google Workspace users, groups, domains, devices, and admin directory data via the Google Admin SDK API. Use this skill when users want to list and in...
使用 Google Admin SDK API 管理 Google Workspace 用户、群组、域名、设备及管理员目录数据。当用户需要列出并管理这些资源时,可使用此技能。
hith3sh hith3sh 来源
未分类 clawhub v1.0.5 2 版本 99873.7 Key: 无需
★ 6
Stars
📥 1,462
下载
💾 1
安装
2
版本
#latest

概述

Google Admin

!Google Admin

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.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect Google Admin
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Google Admin

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   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

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."

Quick Start

# 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 '{}'

Authentication

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.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=google-admin and connect Google Admin.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for google-admin in the list.

Verify Connection

clawlink_list_tools --integration google-admin

Response: Returns the live tool catalog for Google Admin.

Reconnect

If Google Admin tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=google-admin
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration google-admin

Security & Permissions

  • Access is scoped to the Google Workspace domain and resources the connected admin account can manage.
  • All write operations require explicit user confirmation. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
  • Destructive actions (deleting users, removing groups) are marked as high-impact and must be confirmed.
  • This skill requires Google Workspace admin privileges. Personal Gmail accounts do not have access to the Admin SDK.

Tool Reference

Users

ToolDescriptionMode
-------------------------
google_admin_list_all_usersList all users in the domainRead
google_admin_get_a_userGet user details by email or IDRead
google_admin_create_userCreate a new user accountWrite
google_admin_update_userUpdate user fields (name, departments, etc.)Write
google_admin_delete_userDelete a user accountWrite
google_admin_add_user_aliasAdd an email alias to a userWrite
google_admin_turn_off_2_step_verificationDisable 2SV for a user (admin only)Write

Groups

ToolDescriptionMode
-------------------------
google_admin_list_all_groupsList all groups in the domainRead
google_admin_get_groupGet group detailsRead
google_admin_create_groupCreate a new groupWrite
google_admin_delete_groupDelete a groupWrite
google_admin_add_user_to_groupAdd a user to a groupWrite
google_admin_remove_user_from_groupRemove a user from a groupWrite

Organization Units

ToolDescriptionMode
-------------------------
google_admin_list_all_organization_unitsList all organization unitsRead
google_admin_get_organization_unitGet OU detailsRead
google_admin_move_users_and_printers_to_ouMove users or printers to an OUWrite

Devices

ToolDescriptionMode
-------------------------
google_admin_list_all_devicesList all devices in the domainRead
google_admin_get_deviceGet device detailsRead
google_admin_update_deviceUpdate device status or attributesWrite

Domain Management

ToolDescriptionMode
-------------------------
google_admin_get_domain_infoGet domain informationRead
google_admin_list_domainsList all domains in the accountRead

Code Examples

List all users

clawlink_call_tool --tool "google_admin_list_all_users" \
  --params '{
    "customer": "my_customer",
    "max_results": 100
  }'

Create a new user

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"
  }'

Add user to group

clawlink_call_tool --tool "google_admin_add_user_to_group" \
  --params '{
    "group_email": "engineering@example.com",
    "user_email": "newuser@example.com",
    "role": "MEMBER"
  }'

List groups

clawlink_call_tool --tool "google_admin_list_all_groups" \
  --params '{}'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm Google Admin is connected.
  2. Call clawlink_list_tools --integration google-admin to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration google-admin.
  5. If no Google Admin tools appear, direct the user to https://claw-link.dev/dashboard?add=google-admin.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  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                  │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, search, and get operations before writes when that reduces ambiguity.
  4. For writes or anything marked as requiring confirmation, call clawlink_preview_tool first.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • This skill requires Google Workspace admin privileges. Personal Gmail accounts do not have Admin SDK access.
  • User and group email addresses must belong to the verified Google Workspace domain.
  • Some admin operations (like deleting users or moving OUs) may be restricted by admin policies.
  • The customer parameter for user queries can be my_customer or the specific customer ID.

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-admin.
Missing connectionGoogle Admin is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-admin.
404 Not FoundUser, group, or resource does not exist in the domain.
403 ForbiddenThe connected account is not a Workspace admin or lacks permission for this operation.
Write rejectedUser did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly google-admin.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

Related Skills


Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 2 个版本

  • v1.0.5 当前
    2026-06-09 16:14 安全 安全
  • v0.1.0
    2026-05-21 13:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,603
dev-programming

GitHub

hith3sh
通过 GitHub REST 和GraphQL API 与仓库、议题、拉取请求、提交、分支、发布和工作流进行交互。在需要时使用此技能。
★ 6 📥 1,950
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,883