# client.auth.join_domains

> client.auth.join_domains — the auth.joinDomains operations.

`client.auth.join_domains` — the `auth.joinDomains` operations.

On `AsyncKindgi` every method is the same, awaited.

## `client.auth.join_domains.list()`

```python signature
list(*, timeout: float | None = None) -> JoinDomainList
```

The email domains people may join the workspace from. `GET /v1/auth/join-domains`

Someone with a verified email at one of these domains, who signs in by a way that counts for it (a Google Workspace account there, a Microsoft work account, or the emailed link, which proves the mailbox) and whom the workspace doesn't have yet, is offered the workspace and joins with a press, holding the domain's role. GitHub never counts. A sign-in through the workspace's own identity provider follows that provider's `join` setting instead. Someone the workspace removed stays out. Members read it. Mounted when the deployment keeps join domains.

## `client.auth.join_domains.allow()`

```python signature
allow(
    body: AllowJoinDomainBody | Mapping[str, Any] | None = None,
    /,
    *,
    idempotency_key: str | None = None,
    timeout: float | None = None,
    **fields: Any,
) -> JoinDomain
```

Let people at an email domain join the workspace. `POST /v1/auth/join-domains`

Letting more people in takes a person who's a tenant admin, for the domain of the email their session's sign-in proved, exactly (not a subdomain, nor the parent), signed in by a way that counts for it; or the deployment's operator (`kindgi:system`). An API key or a service account has no proved email, so it can't. When the operator manages sign-in (`KINDGI_AUTH_TENANT_PROVIDERS=off`), only the operator can. Never a public mailbox domain (gmail.com, outlook.com, ...), nor a domain the operator verified for another workspace. It needs the deployment's authorization store, so a joiner's role can be checked. The first rule that fails answers: the caller, a public domain, another workspace's domain, the authorization store, a domain allowed already. Audited.

## `client.auth.join_domains.update()`

```python signature
update(
    domain: str,
    body: ChangeJoinDomainBody | Mapping[str, Any] | None = None,
    /,
    *,
    idempotency_key: str | None = None,
    timeout: float | None = None,
    **fields: Any,
) -> JoinDomain
```

Change what someone joining by a domain gets. `PATCH /v1/auth/join-domains/{domain}`

A raise (`none` to `viewer` to `runner`) gives joiners more, so it takes allowing's rules: a person who's a tenant admin for their own proved email's domain, or the operator, and only the operator when it manages sign-in. A lower role takes any tenant admin, an API key too. The same role writes nothing. People who joined already keep what they have. Audited.

## `client.auth.join_domains.unregister()`

```python signature
unregister(
    domain: str,
    /,
    *,
    idempotency_key: str | None = None,
    timeout: float | None = None,
) -> UnregisterJoinDomainResult
```

Stop letting people at a domain join. `POST /v1/auth/join-domains/{domain}/unregister`

New joins by the domain stop; people who joined stay. Any tenant admin, an API key too, also when the operator manages sign-in. Audited.
