---
updatedAt: 2026-05-27T12:51:18.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Get List of Targeted Data Discovery Groups

Use this API to retrieve a list of all Targeted Data Discovery groups for the specified request. The response will include details for each group along with the corresponding group ID, name, and order.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Privacy Automation - Data Subject Request (DSR) Automation",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Privacy Rights Automation are used to manage, process, and fulfill data subject access requests (DSARs), including request creation, subtask management, resolution codes, verification methods, and audit history."
  },
  "servers": [
    {
      "url": "https://{hostname}",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Targeted Data Discovery",
      "description": "APIs used to add, update, and retrieve structured or unstructured data discovery results linked to privacy requests.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-subject-request-dsr-automation.json"
      },
      "x-displayName": "Targeted Data Discovery"
    }
  ],
  "paths": {
    "/api/datasubject/v2/datadiscovery/requestqueues/{requestQueueRefId}": {
      "get": {
        "operationId": "getAllGroupByRequestUsingGET",
        "summary": "Get List of Targeted Data Discovery Groups",
        "description": "Use this API to retrieve a list of all Targeted Data Discovery groups for the specified request. The response will include details for each group along with the corresponding group ID, name, and order.",
        "tags": [
          "Targeted Data Discovery"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-subject-request-dsr-automation.json"
        },
        "parameters": [
          {
            "name": "requestQueueRefId",
            "in": "path",
            "required": true,
            "schema": {
              "description": "Request queue reference Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryGroupResultV2Dto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "PrivacyAutomation-DataSubjectRequestDSRAutomation_OAUTH2": [
              "DSAR",
              "DSAR_READ",
              "DSAR_WRITE"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryGroupResultV2Dto": {
        "type": "object",
        "properties": {
          "groupName": {
            "description": "Name of the group.",
            "type": "string",
            "example": "Salesforce Customer Data"
          },
          "groupOrder": {
            "description": "Order in which group has been created.",
            "type": "integer",
            "format": "int64"
          },
          "groupId": {
            "description": "Unique Identifier of the group.",
            "type": "string",
            "format": "uuid",
            "example": "e2d0f59e-3df0-4b1f-965d-d57547ed44ad"
          }
        }
      }
    },
    "securitySchemes": {
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "DSAR_READ": "Read-only access to DSAR objects scope for external systems",
              "DSAR_WRITE": "Access to DSAR objects scope for external systems",
              "DSAR": "Access to DSAR objects scope for external systems"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  }
}
```

# Sibling pages

* [Get Targeted Data Discovery Group](https://developer.onetrust.com/onetrust/reference/getallgroupandattachmentdetailsusingget.md)
* [Add Targeted Data Discovery Results Summary to Request](https://developer.onetrust.com/onetrust/reference/datadiscoveryupdatesusingpost.md)
* [Add Data Points to Targeted Data Discovery Results Summary](https://developer.onetrust.com/onetrust/reference/unstructureddatadiscoveryupdatesusingpost.md)