# linear_team_membership (Resource)

Manages the membership of a user in a Linear team, including whether they own it.

Destroying the resource removes the user from the team; it does not deactivate the user.

## Example Usage

```terraform
data "linear_user" "alice" {
  email = "alice@example.com"
}

resource "linear_team_membership" "alice_engineering" {
  team_id = linear_team.engineering.id
  user_id = data.linear_user.alice.id
  owner   = true
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `team_id` (String) UUID of the team. Changing it replaces the membership.
- `user_id` (String) UUID of the user. Changing it replaces the membership.

### Optional

- `owner` (Boolean) Whether the user owns the team — team owners may change its settings.
- `sort_order` (Number) Sort position of the team in the user's sidebar.

### Read-Only

- `id` (String) UUID of the membership.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
# Import by UUID.
terraform import linear_team_membership.example a1b2c3d4-0000-0000-0000-000000000000
```