# Get a service principal in the account

Launch stage: GA

`GET /api/2.0/identity/{name=accounts/*/service-principals/*}`

Gets a service principal by its Databricks ID.

API scopes: identity

## Path parameters

- `name` (string, required)
  The resource name of the service principal, in the format
   `accounts/{account_id}/service-principals/{service_principal_id}`.

## Returns

Returns the ServicePrincipal object.

## Response

```json
{
  "name": "string",
  "parent": "string",
  "account_id": "string",
  "service_principal_id": "string",
  "external_id": "string",
  "application_id": "string",
  "display_name": "string",
  "account_sp_status": "ACTIVE"
}
```

