Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

google-workspace-adminGoogle workspace admin 搜索

Agent Skill

google-workspace-admin 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

218

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:google-workspace-admin(Google workspace admin 搜索)
来源仓库:https://github.com/robbowes/dotfiles
仓库路径:skills/google-workspace-admin
安装命令:
npx skills add robbowes/dotfiles --skill "google-workspace-admin"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add robbowes/dotfiles --skill "google-workspace-admin"

简介

Google Workspace Admin 技能用于管理企业协作环境。

  • 适用于账号权限、策略配置和资源审计任务。
  • 使用 npx 命令从 dotfiles 仓库安装技能。
  • 应严格限制管理员权限并记录操作日志。
  • google-workspace-admin 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
google-workspace-admin
description
Google Workspace administration via terminal using GAM7 CLI. Use when user wants to manage users, groups, organizational units, Drive files, labels, permissions, Chrome devices, Gmail settings, or any Google Workspace admin task from command line. Covers GAM7 installation, common workflows, bulk operations, data classification labels, and security best practices. Beginner-friendly with guidance toward standard approaches.

Google Workspace Admin CLI (GAM7)

GAM7 is the standard CLI tool for Google Workspace administration. Before executing commands, ask clarifying questions to ensure standard approaches.

Beginner Guidance Philosophy

Always ask before acting:

  • "What's the business reason for this change?"
  • "Is this a one-off or recurring need?"
  • "Have you checked if this can be done in Admin Console instead?"
  • "Should we test on a single user first?"

Guide toward standard practices:

  • Bulk operations should use CSV files, not loops
  • Changes to permissions should be audited
  • User provisioning should follow established OU structure

Installation

# Linux/macOS/Cloud Shell
bash <(curl -s -S -L https://git.io/gam-install) -l

# Verify
gam version
gam info domain

Setup requires: Google Workspace paid/Edu/Nonprofit edition, super admin access.

Core Command Patterns

gam <action> <entity> [options]
gam <entity> <selector> <action> [options]
gam csv <file> gam <action> ~column_name

User Management

# List all users
gam print users allfields todrive

# Create user
gam create user  [email protected]  firstname John lastname Doe password 'TempPass123!' changepassword on org /Staff

# Create from CSV (users.csv: email,firstname,lastname,password,org)
gam csv users.csv gam create user ~email firstname ~firstname lastname ~lastname password ~password org ~org changepassword on

# Update user
gam update user  [email protected]  suspended off

# Bulk suspend (suspended_users.csv: email)
gam csv suspended_users.csv gam update user ~email suspended on

# Delete user
gam delete user  [email protected] 

# Get user info
gam info user  [email protected] 

# Reset password
gam update user  [email protected]  password 'NewTemp123!' changepassword on

⚠️ Before bulk user operations: Always preview with gam csv file.csv gam info user ~email first.

Group Management

# List groups
gam print groups allfields members todrive

# Create group
gam create group  [email protected]  name "Engineering Team" description "Engineering department"

# Add members
gam update group  [email protected]  add member  [email protected] 
gam update group  [email protected]  add owner  [email protected] 

# Bulk add (members.csv: group,email,role)
gam csv members.csv gam update group ~group add ~role ~email

# Remove member
gam update group  [email protected]  delete member  [email protected] 

# Group settings
gam update group  [email protected]  who_can_join invited_can_join who_can_post_message all_members_can_post

Organizational Units

# List OUs
gam print orgs allfields

# Create OU
gam create org "/Staff/Engineering" description "Engineering department"

# Move user to OU
gam update user  [email protected]  org "/Staff/Engineering"

# Bulk move (moves.csv: email,org)
gam csv moves.csv gam update user ~email org ~org

Drive & Labels

# List user's files
gam user  [email protected]  print filelist todrive

# Find externally shared files
gam user  [email protected]  print filelist query "visibility='anyoneWithLink' or visibility='anyoneCanFind'" todrive

# Transfer ownership
gam user  [email protected]  transfer drive  [email protected] 

# Shared drives
gam print shareddrives todrive
gam create shareddrive name "Project Alpha"

Data Classification Labels

See references/labels.md for full label management.

# List available labels
gam print drivelabels todrive

# Show label details
gam info drivelabel labels/<label_id>

# Apply label to file
gam user  [email protected]  update drivefile id:<file_id> addlabel labels/<label_id> field.<field_id> selection <choice_id>

# Find files by label
gam user  [email protected]  print filelist query "labels/<label_id>" todrive

# Bulk apply labels (files.csv: user,file_id,label_id,field_id,choice_id)
gam csv files.csv gam user ~user update drivefile id:~file_id addlabel labels/~label_id field.~field_id selection ~choice_id

⚠️ Label creation must be done in Admin Console (Security > Data classification > Label Manager). GAM can apply/query labels but not create them.

Security & Audit

# 2-Step Verification status
gam print users fields primaryEmail,isEnrolledIn2Sv,isEnforcedIn2Sv todrive

# Find users without 2SV
gam print users query "isEnrolledIn2Sv=false" todrive

# Admin audit log
gam report admin start -30d todrive

# Login audit
gam report login start -7d todrive

# Drive activity
gam report drive start -7d todrive

# Token (OAuth app) audit
gam all users print tokens todrive

Chrome & Devices

# List Chrome devices
gam print cros allfields todrive

# Disable device
gam update cros query:serial:ABC123 action disable

# Mobile devices
gam print mobile todrive

# Wipe mobile device
gam update mobile <resource_id> action admin_remote_wipe

Gmail Settings

# Set vacation responder
gam user  [email protected]  vacation on subject "Out of Office" message "I'm away until Monday"

# Set signature
gam user  [email protected]  signature file signature.html

# Bulk signature (users.csv: email)
gam csv users.csv gam user ~email signature file signature.html

# Add delegate
gam user  [email protected]  delegate to  [email protected] 

# List filters
gam user  [email protected]  print filters

Bulk Operations Pattern

Always follow this pattern:

  1. Create CSV with required columns
  2. Preview: gam csv file.csv gam info user ~email
  3. Execute: gam csv file.csv gam <actual command>
  4. Verify: Re-run info/print command
# CSV template for user creation
# users.csv:
# email,firstname,lastname,password,org,phone
#  [email protected] ,John,Doe,TempPass123!,/Staff,+1555123456

gam csv users.csv gam create user ~email firstname ~firstname lastname ~lastname password ~password org ~org phone ~phone changepassword on

Troubleshooting

# Re-authenticate
gam oauth create

# Check service account
gam user  [email protected]  check serviceaccount

# Debug mode
gam config debug true <command>

# API quota errors: wait and retry, or request quota increase in GCP Console

Security Best Practices

See references/security.md for comprehensive checklist.

Critical settings to verify:

  1. MFA enforced for all users, especially admins
  2. 2-5 super admins only (not 1, not >5)
  3. Separate admin accounts from daily-use accounts
  4. External sharing restricted or monitored
  5. Less secure apps disabled
  6. OAuth app whitelisting enabled
  7. Alert center configured

Questions to ask before any admin change:

  • "Is there an audit trail requirement?"
  • "Who approved this change?"
  • "Should we test in a sandbox OU first?"
  • "What's the rollback plan?"

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Cursor

34.86%
按下载量换算25

Claude Code

25.61%
按下载量换算18

OpenCode

17.82%
按下载量换算13

Codex

12%
按下载量换算9

Gemini CLI

4.38%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add robbowes/dotfiles --skill "google-workspace-admin" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills