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

# Get Data Subject Group

Use this API to retrieve a single Data Subject Group by its unique identifier along with details such as the Data Subject Group ID and the list of data subjects within its group.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Consent & Preferences - Universal Consent & Preference Management (OAS)",
    "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 Universal Consent & Preference Management APIs are used to integrate external systems and streamline the flow of data with Universal Consent & Preference Management in the OneTrust Platform."
  },
  "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": "Data Subject Groups",
      "description": "The Data Subject Groups APIs are used to manage groups of data subjects.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/consent-preferences-universal-consent-preference-management-oas.json"
      },
      "x-displayName": "Data Subject Groups"
    }
  ],
  "paths": {
    "/api/consentmanager/v2/linkedidentitygroups/{linkedIdentityGroupId}": {
      "get": {
        "operationId": "getLinkedIdentityGroupUsingGET",
        "summary": "Get Data Subject Group",
        "description": "Use this API to retrieve a single Data Subject Group by its unique identifier along with details such as the Data Subject Group ID and the list of data subjects within its group.",
        "tags": [
          "Data Subject Groups"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/consent-preferences-universal-consent-preference-management-oas.json"
        },
        "parameters": [
          {
            "name": "linkedIdentityGroupId",
            "in": "path",
            "description": "Unique identifier identifying a Data Subject Group.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3d8c79aa-5a14-48a4-b88d-f023913ec2ca"
            }
          },
          {
            "name": "displayOrganizations",
            "in": "query",
            "description": "Include organization information in the response.",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK - Successfully retrieved Data Subject Group.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsentPreferences-UniversalConsentPreferenceManag_LinkedIdentityGroupDto_Detailed"
                }
              }
            }
          },
          "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": [
          {
            "ConsentPreferences-UniversalConsentPreferenceManag_OAUTH2": [
              "CONSENT",
              "CONSENT_READ"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ConsentPreferences-UniversalConsentPreferenceManag_DataSubjectEntry_Detailed": {
        "properties": {
          "id": {
            "description": "Unique identifier of the Data Subject",
            "type": "string",
            "format": "uuid",
            "example": "c43a9190-ffd6-4be3-aeff-95b46d0fa59f"
          },
          "identifier": {
            "description": "The identifier value of the Data Subject",
            "type": "string",
            "example": "example@otprivacy.com"
          },
          "identifierType": {
            "description": "The type of identifier used for the Data Subject (e.g., Email, Phone, CustomID)",
            "type": "string",
            "example": "Email"
          },
          "isPrimary": {
            "description": "Boolean flag that denotes if the Data Subject is the primary of the group",
            "type": "boolean",
            "example": false
          },
          "canBePrimary": {
            "description": "Boolean flag that denotes if the Data Subject is allowed to be the group primary",
            "type": "boolean",
            "example": false
          },
          "addedDate": {
            "description": "The date that the Data Subject was added to the group",
            "type": "string",
            "format": "date-time",
            "example": "2020-05-30T12:23:42.145Z"
          },
          "numberOfLinkedGroups": {
            "description": "The number of Other Linked Groups the Data Subject is a member of",
            "type": "integer",
            "format": "int64",
            "example": 2
          },
          "magicLinkToken": {
            "description": "Authentication token used for magic link functionality",
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
          },
          "magicLinkTokenEncoded": {
            "description": "URL-encoded version of the magic link token for direct use in URLs",
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
          },
          "organizations": {
            "description": "Set of organization UUIDs associated with this Data Subject",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "Set of organization UUIDs associated with this Data Subject"
            },
            "example": [
              "550e8400-e29b-41d4-a716-446655440000"
            ],
            "uniqueItems": true
          }
        },
        "required": [
          "identifier",
          "identifierType"
        ]
      },
      "ConsentPreferences-UniversalConsentPreferenceManag_LinkedIdentityGroupDto_Detailed": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Globally unique identifier of a Linked Identity Group",
            "type": "string",
            "format": "uuid",
            "example": "b0a6b5da-4ea2-4a9f-a25a-fb3e212efc30"
          },
          "createdDate": {
            "description": "Creation date of a Linked Identity Group",
            "type": "string",
            "format": "date-time",
            "example": "2020-05-30T10:52:30.974Z"
          },
          "primaryDataSubject": {
            "$ref": "#/components/schemas/ConsentPreferences-UniversalConsentPreferenceManag_DataSubjectEntry_Detailed"
          },
          "primaryDataSubjects": {
            "description": "List of primary Data Subjects in the Linked Identity Group",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsentPreferences-UniversalConsentPreferenceManag_DataSubjectEntry_Detailed"
            }
          },
          "dataSubjects": {
            "description": "A list of all the linked Data Subjects in the group",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsentPreferences-UniversalConsentPreferenceManag_DataSubjectEntry_Detailed"
            }
          },
          "groupName": {
            "description": "The name of the linked identity group",
            "type": "string",
            "example": "Customer Group A"
          }
        }
      }
    },
    "securitySchemes": {
      "ConsentPreferences-UniversalConsentPreferenceManag_OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "CONSENT": "Consent Scope gives the user access to read/write operations",
              "CONSENT_READ": "Consent Read Scope gives the user read-only access"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  }
}
```