# Resolve an external group in the Databricks account

Launch stage: Beta

`POST /api/2.0/identity/accounts/{account_id}/groups/resolve-by-external-id`

Gets a group by its ID in your identity provider (IdP) and syncs its name and parent groups
 from your IdP. If the group isn't in your account yet, it's added. Requires automatic identity
 management. If your account has group visibility filters, the group must match them.

API scopes: identity

## Path parameters

- `account_id` (string, required)
  The ID of the account to resolve the group in.

## Request body

- `external_id` (string, required)
  The ID of the group in your IdP.

## Returns

- `group` (object, optional)
  The resolved group.
  - `name` (string, optional, ID, Immutable)
    The resource name of the group, in one of these formats:
       - Account APIs: `accounts/{account_id}/groups/{group_id}`
       - Workspace APIs: `groups/{group_id}`
  - `parent` (string, optional, Output only, Immutable)
    The resource name of the account that contains the group, in the format
     `accounts/{account_id}`. Workspace APIs return the same format.
  - `account_id` (string, optional, Output only, Immutable)
    The ID of the account that contains the group.
  - `group_id` (string, optional, Output only, Immutable)
    The Databricks ID of the group.
  - `external_id` (string, optional)
    The ID of the group in your identity provider (IdP).
  - `group_name` (string, optional)
    The name of the group.

## Response

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

