# linear_organization (Data Source)

Reads the Linear workspace the API key belongs to. Takes no arguments — the key determines the workspace.

Use it to branch a configuration on what the workspace has enabled, e.g. only declaring `linear_customer_tier` resources when `customers_enabled` is true.

## Example Usage

```terraform
# Takes no arguments: the API key determines the workspace.
data "linear_organization" "this" {}

output "workspace" {
  value = data.linear_organization.this.url_key
}
```

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

### Read-Only

- `created_issue_count` (Number) How many issues have been created in the workspace.
- `customers_enabled` (Boolean) Whether Linear Customers is enabled — the prerequisite for `linear_customer_status` and `linear_customer_tier`.
- `id` (String) UUID of the workspace.
- `logo_url` (String) URL of the workspace logo.
- `name` (String) Display name of the workspace.
- `releases_enabled` (Boolean) Whether releases are enabled — the prerequisite for `linear_release_pipeline`.
- `roadmap_enabled` (Boolean) Whether Initiatives are enabled. Linear renamed the feature to Initiatives; its API still calls the field `roadmapEnabled`, the name it shipped under.
- `saml_enabled` (Boolean) Whether SAML single sign-on is enabled.
- `scim_enabled` (Boolean) Whether SCIM user provisioning is enabled.
- `url_key` (String) URL slug of the workspace — the `<key>` in `linear.app/<key>`.
- `user_count` (Number) How many users the workspace has.