> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Groups

Retrieve a list of groups of a user given a `User Key` or `Customer ID`.

<Note>
  External Documentation

  To learn more, visit the [Google Admin Console documentation](https://developers.google.com/workspace/admin/directory/reference/rest/v1/groups/list).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                       |
  | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Customer ID      | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. The customer ID can be obtained by the `List Users` action.<br /><br />**Note**: Either the `Customer ID` or the `User Key` parameter must be provided. |
  | Query            | Query string for filtering user's groups.<br /><br />For more information on constructing group queries, see \[Search for Groups]\(https: //developers.google.com/workspace/admin/directory/v1/guides/search-groups).                                                                                                             |
  | Return All Pages | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                                                                  |
  | User Key         | A unique identifier of the user to list groups for. The value can be the user's primary email address, alias email address, or unique user ID.<br /><br />**Note**: Either the `Customer ID` or the `User Key` parameter must be provided.                                                                                        |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
  | Max Results             | The maximum number of results to retrieve in a single execution.                                                                                                                                                                                                                                                             |
  | Page Token              | A page token, received from a previous execution. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the execution that provided the page token.                                                                                                                        |
</div>

## Example Output

```json theme={"dark"}
{
  "kind": string,
  "etag": string,
  "groups": [
    {
      {
        "id": string,
        "email": string,
        "name": string,
        "description": string,
        "adminCreated": boolean,
        "directMembersCount": string,
        "kind": string,
        "etag": string,
        "aliases": [
          string
        ],
        "nonEditableAliases": [
          string
        ]
      }
    }
  ],
  "nextPageToken": string
}
```

## Workflow Library Example

[List Groups with Google Admin Console and Send Results Via Email](https://library.blinkops.com/workflows/list-groups-with-google-admin-console-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-groups-with-google-admin-console-and-send-results-via-email/canvas" />
</div>
