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

# Get Targeted Data Discovery Group

Use this API to retrieve results for a Targeted Data Discovery group for the specified request.

# 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/groups/{groupId}/requestqueues/{requestQueueRefId}": {
      "get": {
        "operationId": "getAllGroupAndAttachmentDetailsUsingGET",
        "summary": "Get Targeted Data Discovery Group",
        "description": "Use this API to retrieve results for a Targeted Data Discovery group for the specified request.",
        "tags": [
          "Targeted Data Discovery"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-subject-request-dsr-automation.json"
        },
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "description": "TDD Group Id",
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requestQueueRefId",
            "in": "path",
            "required": true,
            "schema": {
              "description": "Request queue ref ID",
              "type": "string"
            }
          },
          {
            "name": "includeAttachments",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Set to true to include attachment information in the response. If false or omitted, attachments will not be included.",
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryGroupV2Dto"
                }
              }
            }
          },
          "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_PageableObject": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int64"
          },
          "sort": {
            "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_SortObject"
          },
          "paged": {
            "type": "boolean"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "unpaged": {
            "type": "boolean"
          }
        }
      },
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_SortObject": {
        "type": "object",
        "properties": {
          "empty": {
            "type": "boolean"
          },
          "sorted": {
            "type": "boolean"
          },
          "unsorted": {
            "type": "boolean"
          }
        }
      },
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryAttachmentListDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "description": "Name of the file.",
            "type": "string",
            "example": "receipt.pdf"
          },
          "fileId": {
            "description": "Unique Identifier of the File.",
            "type": "string",
            "format": "uuid",
            "example": "e2d0f59e-3df0-4b1f-965d-d57547ed44ad"
          },
          "source": {
            "description": "Name of the system where the attachment originated and displayed as targeted data discovery system for files added by user.",
            "type": "string"
          },
          "fileSize": {
            "description": "Size of the file in kilobyte.",
            "type": "integer",
            "format": "int64"
          },
          "isSharable": {
            "type": "boolean",
            "writeOnly": true
          },
          "sharable": {
            "type": "boolean"
          }
        }
      },
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryGroupV2Dto": {
        "type": "object",
        "properties": {
          "groupName": {
            "description": "Name of the group.",
            "type": "string",
            "example": "Salesforce Customer Data"
          },
          "groupId": {
            "description": "Unique Identifier of the group.",
            "type": "string",
            "format": "uuid",
            "example": "e2d0f59e-3df0-4b1f-965d-d57547ed44ad"
          },
          "dataDiscoveryResultsV2Dtos": {
            "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_PageDataDiscoveryResultsV2Dto"
          },
          "dataDiscoveryAttachmentListDtos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryAttachmentListDto"
            }
          }
        }
      },
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryResultsV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Unique Identifier for field Id.",
            "type": "string",
            "format": "uuid",
            "example": "e2d0f59e-3df0-4b1f-965d-d57547ed44ad"
          },
          "fieldName": {
            "description": "The name for a data field in the results summary",
            "type": "string",
            "example": "firstname"
          },
          "value": {
            "description": "This is the actual data element.",
            "type": "string",
            "example": "John"
          },
          "system": {
            "description": "Displays the name of the source of a particular data element.",
            "type": "string",
            "example": "Salesforce"
          }
        }
      },
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_PageDataDiscoveryResultsV2Dto": {
        "type": "object",
        "properties": {
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "items": {
              "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_DataDiscoveryResultsV2Dto"
            },
            "type": "array"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "sort": {
            "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_SortObject"
          },
          "last": {
            "type": "boolean"
          },
          "first": {
            "type": "boolean"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "pageable": {
            "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_PageableObject"
          },
          "empty": {
            "type": "boolean"
          }
        }
      }
    },
    "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 List of Targeted Data Discovery Groups](https://developer.onetrust.com/onetrust/reference/getallgroupbyrequestusingget.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)