# Resolve an external user in the Databricks account

Launch stage: Beta

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

Gets a user by their ID in your identity provider (IdP) and syncs their details and group
 memberships from your IdP. If the user isn't in your account yet, they're added. Requires
 automatic identity management.

API scopes: identity

## Path parameters

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

## Request body

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

## Returns

- `user` (object, optional)
  The resolved user.
  - `name` (string, optional, ID, Immutable)
    The resource name of the user, in one of these formats:
       - Account APIs: `accounts/{account_id}/users/{user_id}`
       - Workspace APIs: `users/{user_id}`
  - `parent` (string, optional, Output only, Immutable)
    The resource name of the account that contains the user, 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 user.
  - `user_id` (string, optional, Output only, Immutable)
    The Databricks ID of the user.
  - `external_id` (string, optional)
    The ID of the user in your identity provider (IdP).
  - `username` (string, required, Immutable)
    The user's username, which is their email address. It can't be changed after the user is
     created.
  - `full_name` (object, required)
    The user's name.
    - `given_name` (string, optional)
      The user's given (first) name.
    - `family_name` (string, optional)
      The user's family (last) name.
  - `account_user_status` (string, required)
    Whether the user is active in the account. New users are active unless you set this to
     `INACTIVE`.
    Possible values:
    - `ACTIVE`
    - `INACTIVE`

## Response

```json
{
  "user": {
    "name": "string",
    "parent": "string",
    "account_id": "string",
    "user_id": "string",
    "external_id": "string",
    "username": "string",
    "full_name": {},
    "account_user_status": "ACTIVE"
  }
}
```

