# `Mailglass.Operator.Tenants`
[🔗](https://github.com/szTheory/mailglass/blob/v2.7.0/lib/mailglass/operator/tenants.ex#L1)

Tenant-scoped read model for operator tenant selector choices.

# `context`

```elixir
@type context() :: map() | keyword() | term()
```

# `tenant_row`

```elixir
@type tenant_row() :: %{id: String.t(), label: String.t()}
```

# `list_tenants`

```elixir
@spec list_tenants(
  context(),
  keyword()
) :: [tenant_row()]
```

Lists distinct tenant ids visible to the given operator context.

The projection is intentionally small: shell selectors only need an id and
display label, and labels are currently the tenant ids themselves.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
