Google admin automation

From EricGrill/agents-skills-plugins · View interactive version

Google admin automation is an AI agent skill from the GitHub repository EricGrill/agents-skills-plugins. Automate Google Workspace Admin tasks via Rube MCP (Composio): manage users, groups, memberships, suspend accounts, create users, add aliases. Always search tools first for current schemas.

How to use this skill

Skill file

Google Workspace Admin Automation via Rube MCP

Manage Google Workspace users, groups, memberships, and organizational settings programmatically using Rube MCP (Composio).

Toolkit docs: composio.dev/toolkits/google_admin

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit google_admin
  3. If connection is not ACTIVE, follow the returned auth link to complete setup
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. List All Users

Use GOOGLE_ADMIN_LIST_USERS to retrieve Google Workspace users with optional filtering and pagination.

Tool: GOOGLE_ADMIN_LIST_USERS
Parameters:
  - customer: Customer ID or "my_customer" (default)
  - domain: Domain to list users from
  - query: Filter string (e.g., "orgName=Engineering", "isSuspended=false")
  - max_results: Maximum results (1-500, default 100)
  - order_by: Sort by "email", "givenName", or "familyName"
  - sort_order: "ASCENDING" or "DESCENDING"
  - page_token: Pagination token

2. Create a New User

Use GOOGLE_ADMIN_CREATE_USER to provision a new Google Workspace account.

Tool: GOOGLE_ADMIN_CREATE_USER
Parameters:
  - primary_email (required): User's email (e.g., "john.doe@company.com")
  - given_name (required): First name
  - family_name (required): Last name
  - password (required): Password meeting domain requirements
  - org_unit_path: Organizational unit (default: "/")
  - change_password_at_next_login: Force password change (default: true)
  - recovery_email: Recovery email address
  - recovery_phone: Recovery phone number
  - suspended: Whether account starts suspended (default: false)

3. List and Manage Groups

Use GOOGLE_ADMIN_LIST_GROUPS to list groups, and GOOGLE_ADMIN_CREATE_GROUP to create new ones.

Tool: GOOGLE_ADMIN_LIST_GROUPS
Parameters:
  - customer: "my_customer" (default)
  - domain: Filter by domain
  - query: Filter (e.g., "name=Engineering*")
  - max_results: Max results (1-200)
  - order_by: Sort by "email"
  - page_token: Pagination token

Tool: GOOGLE_ADMIN_CREATE_GROUP
Parameters:
  - email (required): Group email address (e.g., "engineering@company.com")
  - name (required): Display name (e.g., "Engineering Team")
  - description: Group purpose description

4. Add Users to Groups

Use GOOGLE_ADMIN_ADD_USER_TO_GROUP to manage group membership.

Tool: GOOGLE_ADMIN_ADD_USER_TO_GROUP
Parameters:
  - group_key (required): Group email or ID
  - user_key (required): User email or ID to add
  - role: "MEMBER" (default), "MANAGER", or "OWNER"

5. Suspend or Unsuspend Users

Use GOOGLE_ADMIN_SUSPEND_USER to toggle user account suspension.

Tool: GOOGLE_ADMIN_SUSPEND_USER
Parameters:
  - user_key (required): User's email or unique ID
  - suspended: true to suspend, false to unsuspend (default: true)
  - suspension_reason: Reason for suspension (optional)

6. Get User or Group Details

Use GOOGLE_ADMIN_GET_USER or GOOGLE_ADMIN_GET_GROUP to retrieve detailed information.

Tool: GOOGLE_ADMIN_GET_USER
Parameters:
  - user_key (required): User's email or unique ID

Tool: GOOGLE_ADMIN_GET_GROUP
Parameters:
  - group_key (required): Group's email or unique ID

Common Patterns

Known Pitfalls

Quick Reference

| Action | Tool | Key Parameters |

|--------|------|----------------|

| List users | GOOGLE_ADMIN_LIST_USERS | customer, domain, query, max_results |

| Get user details | GOOGLE_ADMIN_GET_USER | user_key |

| Create user | GOOGLE_ADMIN_CREATE_USER | primary_email, given_name, family_name, password |

| Delete user | GOOGLE_ADMIN_DELETE_USER | user_key |

| Suspend user | GOOGLE_ADMIN_SUSPEND_USER | user_key, suspended |

| Add user alias | GOOGLE_ADMIN_ADD_USER_ALIAS | (see full schema via RUBE_SEARCH_TOOLS) |

| List groups | GOOGLE_ADMIN_LIST_GROUPS | customer, domain, query |

| Get group details | GOOGLE_ADMIN_GET_GROUP | group_key |

| Create group | GOOGLE_ADMIN_CREATE_GROUP | email, name, description |

| Add to group | GOOGLE_ADMIN_ADD_USER_TO_GROUP | group_key, user_key, role |

| List group members | GOOGLE_ADMIN_LIST_GROUP_MEMBERS | (see full schema via RUBE_SEARCH_TOOLS) |


Powered by Composio

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.