# Get one of the principal's parent groups

Launch stage: Beta

`GET /api/2.0/identity/{name=accounts/*/me/transitive-parent-groups/*}`

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

Gets one direct or inherited parent group of the principal. Returns a NOT_FOUND error if
 the group is not a direct or inherited parent group of the principal.

API scopes: identity

## Path parameters

- `name` (string, required)
  The parent group name. Use accounts/{account_id}/me/transitive-parent-groups/{group_id}
   on an account host or me/transitive-parent-groups/{group_id} on a workspace host.

## Returns

- `name` (string, optional, ID, Immutable)
  The parent group resource name, in the format
   accounts/{account_id}/me/transitive-parent-groups/{group_id} on an account host or
   me/transitive-parent-groups/{group_id} on a workspace host.
- `account_id` (string, optional, Output only)
  The account ID of the parent group.
- `group_id` (string, optional, Output only)
  The internal ID of the parent group.
- `external_id` (string, optional, Output only)
  The external ID of the parent group in the customer's identity provider, if present.
- `group_name` (string, optional, Output only)
  The name of the parent group.

## Response

```json
{
  "name": "string",
  "account_id": "string",
  "group_id": "string",
  "external_id": "string",
  "group_name": "string"
}
```

