Community程式設計與開發github.com

Google Admin 自動化

透過 Rube MCP (Composio) 自動化 Google Workspace 管理任務:管理使用者、群組、成員資格、暫停帳戶、建立使用者、新增別名。請務必先搜尋工具以取得最新架構。

Google Admin 自動化 是什麼?

這項技能讓 AI 代理能夠以程式化方式管理 Google Workspace 使用者、群組、成員資格和組織設定,核心是透過 Rube MCP(Composio)的整合。它支援多種平台,包括 Claude Code、Cursor 和任何與 MCP 相容的用戶端。技能提供從使用者上線(建立帳戶、加入群組)到離線(暫停或刪除帳戶)的完整工作流程,並包含群組管理、別名新增和詳細查詢功能。要使用此技能,代理必須先呼叫 RUBE_SEARCH_TOOLS 來取得目前工具架構,然後透過 RUBE_MANAGE_CONNECTIONS 建立 google_admin 工具包的連線。關鍵注意事項包括:所有動作都需要管理員權限、刪除使用者不可逆,且使用者金鑰可接受電子郵件或唯一 ID。此技能透過明確的參數文件記錄了每個工具的行為,並提供常見模式(如批次管理和稽核)的指引,使其成為 Workspace 管理的完整解決方案。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-claude-skills/tree/master/composio-skills/google-admin-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

透過 Rube MCP 的 Google Workspace 管理自動化

使用 Rube MCP (Composio) 以程式化方式管理 Google Workspace 使用者、群組、成員資格和組織設定。

工具包文件:composio.dev/toolkits/google_admin

先決條件

  • Rube MCP 必須已連線(RUBE_SEARCH_TOOLS 可用)
  • 透過 RUBE_MANAGE_CONNECTIONS 啟用 google_admin 工具包的連線
  • 已驗證帳戶需具備 Google Workspace 管理員權限
  • 務必先呼叫 RUBE_SEARCH_TOOLS 以取得目前工具架構

設定

取得 Rube MCP:在用戶端設定中將 https://rube.app/mcp 新增為 MCP 伺服器。無需 API 金鑰——只需新增端點即可運作。

  1. 確認 RUBE_SEARCH_TOOLS 有回應,以驗證 Rube MCP 是否可用
  2. 使用 google_admin 工具包呼叫 RUBE_MANAGE_CONNECTIONS
  3. 如果連線狀態不是 ACTIVE,請依照傳回的身份驗證連結完成設定
  4. 在執行任何工作流程前,確認連線狀態顯示為 ACTIVE

核心工作流程

1. 列出所有使用者

使用 GOOGLE_ADMIN_LIST_USERS 擷取 Google Workspace 使用者,可搭配篩選與分頁。

工具:GOOGLE_ADMIN_LIST_USERS
參數:
  - customer:客戶 ID 或 "my_customer"(預設)
  - domain:要列出使用者的網域
  - query:篩選字串(例如 "orgName=Engineering"、"isSuspended=false")
  - max_results:最大結果數(1-500,預設 100)
  - order_by:排序依據 "email"、"givenName" 或 "familyName"
  - sort_order:"ASCENDING" 或 "DESCENDING"
  - page_token:分頁權杖

2. 建立新使用者

使用 GOOGLE_ADMIN_CREATE_USER 佈建新的 Google Workspace 帳戶。

工具:GOOGLE_ADMIN_CREATE_USER
參數:
  - primary_email(必填):使用者電子郵件(例如 "[email protected]")
  - given_name(必填):名字
  - family_name(必填):姓氏
  - password(必填):符合網域要求的密碼
  - org_unit_path:組織單位(預設:"/")
  - change_password_at_next_login:強制下次登入時變更密碼(預設:true)
  - recovery_email:救援電子郵件地址
  - recovery_phone:救援電話號碼
  - suspended:帳戶是否從暫停狀態開始(預設:false)

3. 列出與管理群組

使用 GOOGLE_ADMIN_LIST_GROUPS 列出群組,並使用 GOOGLE_ADMIN_CREATE_GROUP 建立新群組。

工具:GOOGLE_ADMIN_LIST_GROUPS
參數:
  - customer:"my_customer"(預設)
  - domain:依網域篩選
  - query:篩選(例如 "name=Engineering*")
  - max_results:最大結果數(1-200)
  - order_by:排序依據 "email"
  - page_token:分頁權杖

工具:GOOGLE_ADMIN_CREATE_GROUP
參數:
  - email(必填):群組電子郵件地址(例如 "[email protected]")
  - name(必填):顯示名稱(例如 "Engineering Team")
  - description:群組用途說明

4. 將使用者加入群組

使用 GOOGLE_ADMIN_ADD_USER_TO_GROUP 管理群組成員資格。

工具:GOOGLE_ADMIN_ADD_USER_TO_GROUP
參數:
  - group_key(必填):群組電子郵件或 ID
  - user_key(必填):要加入的使用者電子郵件或 ID
  - role:"MEMBER"(預設)、"MANAGER" 或 "OWNER"

5. 暫停或取消暫停使用者

使用 GOOGLE_ADMIN_SUSPEND_USER 切換使用者帳戶的暫停狀態。

工具:GOOGLE_ADMIN_SUSPEND_USER
參數:
  - user_key(必填):使用者電子郵件或唯一 ID
  - suspended:true 表示暫停,false 表示取消暫停(預設:true)
  - suspension_reason:暫停原因(選填)

6. 取得使用者或群組詳細資料

使用 GOOGLE_ADMIN_GET_USER 或 GOOGLE_ADMIN_GET_GROUP 擷取詳細資訊。

工具:GOOGLE_ADMIN_GET_USER
參數:
  - user_key(必填):使用者電子郵件或唯一 ID

工具:GOOGLE_ADMIN_GET_GROUP
參數:
  - group_key(必填):群組電子郵件或唯一 ID

常見模式

  • 上線工作流程:使用 GOOGLE_ADMIN_CREATE_USER 佈建帳戶,然後使用 GOOGLE_ADMIN_ADD_USER_TO_GROUP 將使用者加入相關群組。
  • 離線工作流程:使用 GOOGLE_ADMIN_SUSPEND_USER 停用存取權限,或使用 GOOGLE_ADMIN_DELETE_USER 進行永久刪除。
  • 稽核群組成員資格:使用 GOOGLE_ADMIN_LIST_GROUPS 尋找群組,然後使用 GOOGLE_ADMIN_LIST_GROUP_MEMBERS 檢閱成員。
  • 大量使用者管理:使用 GOOGLE_ADMIN_LIST_USERS 和篩選查詢列出使用者,然後依序更新。
  • 新增電子郵件別名:使用 GOOGLE_ADMIN_ADD_USER_ALIAS 為使用者新增替代電子郵件地址。
  • 查詢使用者詳細資料:在進行變更前,使用 GOOGLE_ADMIN_GET_USER 擷取完整的個人資料資訊。

已知陷阱

  • 需要管理員權限:所有工具都要求已驗證的使用者具備 Google Workspace 管理員權限。非管理員帳戶將會收到權限錯誤。
  • 刪除是永久性的:GOOGLE_ADMIN_DELETE_USER 會永久刪除使用者帳戶。此動作無法復原。
  • user_key 接受電子郵件或 ID:user_key 參數可接受使用者的主要電子郵件地址及其唯一數值使用者 ID。
  • 群組成員資格取代:加入群組時,role 參數控制成員的角色。沒有「更新角色」功能——請先移除再重新加入以變更角色。
  • 客戶 ID:使用 "my_customer" 作為已驗證使用者所屬組織的 customer 參數。特定客戶 ID 格式如 C01abc123。
  • 分頁:使用者和群組列表端點都可能回傳分頁結果。請務必檢查回應中的 page_token 以取得完整結果。
  • 密碼要求:GOOGLE_ADMIN_CREATE_USER 需要符合網域密碼政策的密碼。弱密碼將被拒絕。

快速參考

動作工具關鍵參數
列出使用者GOOGLE_ADMIN_LIST_USERScustomer、domain、query、max_results
取得使用者詳細資料GOOGLE_ADMIN_GET_USERuser_key
建立使用者GOOGLE_ADMIN_CREATE_USERprimary_email、given_name、family_name、password
刪除使用者GOOGLE_ADMIN_DELETE_USERuser_key
暫停使用者GOOGLE_ADMIN_SUSPEND_USERuser_key、suspended
新增使用者別名GOOGLE_ADMIN_ADD_USER_ALIAS(請透過 RUBE_SEARCH_TOOLS 檢視完整架構)
列出群組GOOGLE_ADMIN_LIST_GROUPScustomer、domain、query
取得群組詳細資料GOOGLE_ADMIN_GET_GROUPgroup_key
建立群組GOOGLE_ADMIN_CREATE_GROUPemail、name、description
加入群組GOOGLE_ADMIN_ADD_USER_TO_GROUPgroup_key、user_key、role
列出群組成員GOOGLE_ADMIN_LIST_GROUP_MEMBERS(請透過 RUBE_SEARCH_TOOLS 檢視完整架構)

由 Composio 提供技術支援

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

agent-mail-automation

Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.

agentql-automation

Automate Agentql tasks via Rube MCP (Composio). Always search tools first for current schemas.

agenty-automation

Automate Agenty tasks via Rube MCP (Composio). Always search tools first for current schemas.

相關技能