> ## 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.

To fetch all results, run repeatedly with the `Offset` parameter as long as the result metadata has a `next_offset` value.

**Note**: This action requires the `Grant resource - Read` API permission.

<Note>
  External Documentation

  To learn more, visit the [Duo documentation](https://duo.com/docs/adminapi#groups).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                        |
  | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Limit     | The maximum number of groups to retrieve. Defaults to `100` with a maximum of `100`.                                                                                                                               |
  | Offset    | The offset from 0 at which to start record retrieval.<br /><br />When used with `Limit`, the handler will return `limit` records starting at the n-th record, where `n` is the offset.<br /><br />Defaults to `0`. |
</div>

## Example Output

```json theme={"dark"}
{
  "metadata": {
    "total_objects": 2
  },
  "stat": "OK",
  "response": [
    {
    "desc": "This is group A",
    "group_id": "DGXXXXXXXXXXXXXXXXXX",
    "mobile_otp_enabled": false,    
    "name": "Group A",
    "push_enabled": false,
    "sms_enabled": false,
    "status": "Active",
    "voice_enabled": false
    },
    {
    "desc": "This is group B",
    "group_id": "DGXXXXXXXXXXXXXXXXXX",
    "mobile_otp_enabled": false,
    "name": "Group B (from Azure sync \"Acme Corp Azure AD\")"",
    "push_enabled": false,
    "sms_enabled": false,
    "status": "Active",
    "voice_enabled": false
    }
  ],
}
```

## Workflow Library Example

[List Groups with Duo and Send Results Via Email](https://library.blinkops.com/workflows/list-groups-with-duo-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-duo-and-send-results-via-email/canvas" />
</div>
