/gws:gws-groupsfrom gws
Lists Google Groups and their members via the gws CLI tool. Useful for Google Workspace admin tasks like group enumeration and membership lookup.
Ships in gws. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
gws groups provides CLI access to Google Groups via the Admin Directory API with structured JSON output.
Disclaimer:
gwsis not the official Google CLI. This is an independent, open-source project not endorsed by or affiliated with Google.
Before executing any gws command, verify the CLI is installed:
gws version
If not found, install: go install github.com/omriariav/workspace-cli/cmd/gws@latest
Minimum version required: v1.18.0 (Groups support added in this release)
Requires OAuth2 credentials. Run gws auth status to check.
If not authenticated: gws auth login (opens browser for OAuth consent).
For initial setup, see the gws-auth skill.
| Task | Command |
|---|---|
| List groups | gws groups list |
| List groups in a domain | gws groups list --domain example.com |
| List groups for a user | gws groups list --user-email [email protected] |
| List more groups | gws groups list --max 200 |
| List group members | gws groups members [email protected] |
| List group owners | gws groups members [email protected] --role OWNER |
gws groups list [flags]
Lists Google Groups in your domain. By default, lists all groups for the customer account.
Flags:
--max int -- Maximum number of groups to return (default 50)--domain string -- Filter by domain--user-email string -- Filter groups for a specific userNote: --domain and --user-email are mutually exclusive. Providing both will return an error.
Output includes:
id -- Group IDemail -- Group email addressname -- Group display namedescription -- Group description (if set)member_count -- Number of direct members (if available)Examples:
gws groups list
gws groups list --max 200
gws groups list --domain example.com
gws groups list --user-email [email protected]
gws groups list --format json | jq '.groups[] | {name, email}'
gws groups members <group-email> [flags]
Lists members of a Google Group by group email address.
Arguments:
group-email -- Group email address (required)Flags:
--max int -- Maximum number of members to return (default 50)--role string -- Filter by role: OWNER, MANAGER, or MEMBEROutput includes:
id -- Member IDemail -- Member email addressrole -- Member role (OWNER, MANAGER, or MEMBER)type -- Member type (e.g., USER, GROUP)status -- Member status (if available)Examples:
gws groups members [email protected]
gws groups members [email protected] --max 200
gws groups members [email protected] --role OWNER
gws groups members [email protected] --role MANAGER
gws groups members [email protected] --format json | jq '.members[] | select(.role == "OWNER")'
gws groups list --format json # Structured JSON (default)
gws groups list --format yaml # YAML format
gws groups list --format text # Human-readable text
--format json (the default) for programmatic parsinglist command returns groups for the entire customer account by default; use --domain or --user-email to narrow results--domain and --user-email cannot be used together -- pick one filter--role on the members command to quickly find group owners or managersmembers command requires the exact group email address as a positional argument--quiet on any command to suppress JSON output (useful for scripted actions)jq to filter and aggregate resultsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
16 skills in this plugin
/gws-authGoogle Workspace CLI authentication setup and management. Use when users need to set up OAuth credentials, authenticate with Google APIs, or troubleshoot authentication issues. Triggers: gws auth, google workspace setup, oauth, credentials, client id, api setup./gws-calendarGoogle Calendar CLI operations via gws. Use when users need to list calendars, view events, create/update/delete events, RSVP to invitations, manage calendar CRUD, subscriptions, ACL, free/busy queries, colors, and settings. Triggers: calendar, events, meetings, schedule, rsvp, invite, share, freebusy./gws-chatGoogle Chat CLI operations via gws. Use when users need to list/create/manage chat spaces, read/send messages, manage members, track read state, handle attachments, or monitor space events. Triggers: google chat, gchat, chat spaces, chat messages./gws-contactsGoogle Contacts CLI operations via gws. Use when users need to list, search, view, create, or delete contacts. Triggers: contacts, google contacts, people api, contact management./gws-docsGoogle Docs CLI operations via gws. Use when users need to read, create, or edit Google Docs documents. Triggers: google docs, document, gdoc, word processing./gws-driveGoogle Drive CLI operations via gws. Use when users need to list, search, upload, download, manage files/folders, permissions, approvals, revisions, comments, shared drives, and more. Triggers: drive, files, upload, download, folders, google drive, file management, permissions, approvals, share, shared drives.npx claudepluginhub omriariav/workspace-cli --plugin gws