> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/google-workspace-admin.md).

# Google Workspace Admin

Connect to Google Workspace Admin SDK to manage Google Groups and group memberships.

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector              | Authentication |
| ---------------------- | -------------- |
| Google Workspace Admin | OAuth sign-in  |

#### Google Workspace Admin

Connect to Google Workspace Admin SDK to manage Google Groups and group memberships. Requires a Super Admin or Groups Admin account.

**Set up in Google Workspace Admin**

1. Make sure you are signing in with a Google Workspace account that has Super Admin or Groups Admin privileges.
2. Sign in to your Google admin account in the window that opens.
3. Review and authorize the requested Admin SDK permissions for managing Google Groups and group memberships.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Google Workspace Admin**.
2. Select **Connect**, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

StackAI obtains the OAuth credentials during sign-in. You do not need to paste an access token or refresh token.

**Provider documentation:** [Setup reference](https://developers.google.com/admin-sdk/directory).

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Google Workspace Admin** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### Add Member to Group

Add a user to a Google Group as a member, manager, or owner.

**Inputs**

| Field        | Type            | Required | Description                                                                                              |
| ------------ | --------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| Group Email  | select (string) | Yes      | Google Group email address (e.g., <engineering@company.com>). Options load from the selected connection. |
| Member Email | string          | Yes      | Email address of the user to add to the group.                                                           |
| Role         | select (string) | No       | Membership role for the new group member. Available values: Member, Manager, Owner. Default: MEMBER.     |

**Outputs**

| Field  | Type   | Description                         |
| ------ | ------ | ----------------------------------- |
| Member | object | Created Google Group member object. |

#### Create Group

Create a new Google Group in your Workspace domain.

**Inputs**

| Field       | Type     | Required | Description                             |
| ----------- | -------- | -------- | --------------------------------------- |
| Group Email | string   | Yes      | Email address for the new Google Group. |
| Group Name  | string   | Yes      | Display name for the new Google Group.  |
| Description | textarea | No       | Optional description for the group.     |

**Outputs**

| Field | Type   | Description                  |
| ----- | ------ | ---------------------------- |
| Group | object | Created Google Group object. |

#### Delete Group

Delete a Google Group from your Workspace domain.

**Inputs**

| Field       | Type            | Required | Description                                                                      |
| ----------- | --------------- | -------- | -------------------------------------------------------------------------------- |
| Group Email | select (string) | Yes      | Google Group email address to delete. Options load from the selected connection. |

**Outputs**

| Field   | Type    | Description                           |
| ------- | ------- | ------------------------------------- |
| Success | boolean | Whether the group deletion succeeded. |
| Message | string  | Human-readable confirmation message.  |

#### Get Member Details

Get role and status details for a specific Google Group member.

**Inputs**

| Field        | Type            | Required | Description                                                            |
| ------------ | --------------- | -------- | ---------------------------------------------------------------------- |
| Group Email  | select (string) | Yes      | Google Group email address. Options load from the selected connection. |
| Member Email | string          | Yes      | Email address of the member to fetch.                                  |

**Outputs**

| Field  | Type   | Description                  |
| ------ | ------ | ---------------------------- |
| Member | object | Google Group member details. |

#### List Group Members

List members of a Google Group, optionally filtered by role.

**Inputs**

| Field       | Type            | Required | Description                                                                                 |
| ----------- | --------------- | -------- | ------------------------------------------------------------------------------------------- |
| Group Email | select (string) | Yes      | Google Group email address. Options load from the selected connection.                      |
| Role Filter | select (string) | No       | Optional role filter (member, manager, or owner). Available values: Member, Manager, Owner. |

**Outputs**

| Field         | Type          | Description                                  |
| ------------- | ------------- | -------------------------------------------- |
| Members       | object\_array | All group members returned across all pages. |
| Total Members | integer       | Number of members returned.                  |

#### List Groups

List Google Groups in a Workspace domain.

**Inputs**

| Field  | Type            | Required | Description                                                                                                                                                    |
| ------ | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain | select (string) | No       | Workspace domain to list groups for (e.g., company.com). Leave empty to fetch groups across all accessible domains. Options load from the selected connection. |

**Outputs**

| Field        | Type          | Description                           |
| ------------ | ------------- | ------------------------------------- |
| Groups       | object\_array | List of Google Groups for the domain. |
| Total Groups | integer       | Number of groups returned.            |

#### Remove Member from Group

Remove a user from a Google Group.

**Inputs**

| Field        | Type            | Required | Description                                                            |
| ------------ | --------------- | -------- | ---------------------------------------------------------------------- |
| Group Email  | select (string) | Yes      | Google Group email address. Options load from the selected connection. |
| Member Email | string          | Yes      | Email address of the member to remove from the group.                  |

**Outputs**

| Field   | Type    | Description                           |
| ------- | ------- | ------------------------------------- |
| Success | boolean | Whether the member removal succeeded. |
| Message | string  | Human-readable confirmation message.  |

#### Update Member Role

Update a Google Group member role to member, manager, or owner.

**Inputs**

| Field        | Type            | Required | Description                                                              |
| ------------ | --------------- | -------- | ------------------------------------------------------------------------ |
| Group Email  | select (string) | Yes      | Google Group email address. Options load from the selected connection.   |
| Member Email | string          | Yes      | Email address of the member whose role is being updated.                 |
| Role         | select (string) | Yes      | New role for the group member. Available values: Member, Manager, Owner. |

**Outputs**

| Field  | Type   | Description                         |
| ------ | ------ | ----------------------------------- |
| Member | object | Updated Google Group member object. |

### Important behavior

If an operation is denied, check the connection’s granted permissions and the account’s access in the provider. Reauthorize the connection when it needs additional permissions.

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/google-workspace-admin.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
