# List all transitive parent groups of a principal

Launch stage: GA

`GET /api/2.0/identity/{parent=principals/*}/transitive-parent-groups`

Lists all transitive parent groups of a principal.

API scopes: identity

## Path parameters

- `parent` (string, required)
  The parent resource name of the principal whose transitive parent groups to list.
   Format: principals/{principal_id}

## Query parameters

- `page_size` (int32, optional)
  The maximum number of parent groups to return. The service may return fewer than this value.
   If not provided, defaults to 1000, which is also the maximum allowed. Requests for more than the maximum are clamped to 1000.
- `page_token` (string, optional)
  A page token, received from a previous ListTransitiveParentGroups call. Provide this to retrieve the subsequent page.

## Returns

Returns a list of TransitiveParentGroup objects.

## Response

```json
{
  "transitive_parent_groups": [
    {
      "name": "string",
      "account_id": "string",
      "group_id": "string",
      "external_id": "string"
    }
  ],
  "next_page_token": "string"
}
```

