# The ServicePrincipal object

A service principal in your Databricks account.

## Attributes

- `name` (string, ID, Immutable)
  The resource name of the service principal, in one of these formats:
     - Account APIs: `accounts/{account_id}/service-principals/{service_principal_id}`
     - Workspace APIs: `service-principals/{service_principal_id}`
- `parent` (string, Output only, Immutable)
  The resource name of the account that contains the service principal, in the format
   `accounts/{account_id}`. Workspace APIs return the same format.
- `account_id` (string, Output only, Immutable)
  The ID of the account that contains the service principal.
- `service_principal_id` (string, Output only, Immutable)
  The Databricks ID of the service principal.
- `external_id` (string)
  The ID of the service principal in your identity provider (IdP).
- `application_id` (string, Immutable)
  The service principal's application ID, a UUID. If you don't set it when you create the
   service principal, Databricks generates one. It must be unique in the account and can't be
   changed.
- `display_name` (string)
  The service principal's display name.
- `account_sp_status` (string)
  Whether the service principal is active in the account.
  Possible values:
  - `ACTIVE`
  - `INACTIVE`

## Example

```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"
}
```


