---
title: Share a space
description: Add people to your tzTrack space by their Turn Zero accounts' email addresses, at the level you choose, so their sessions and yours work the same issues.
slug: /guides/share-a-space
order: 7
visibility: public
redirects_from: []
---

# Share a space

Prompt:

> Give Dana access to our tzTrack space so her sessions see the same issues.

Also works: "Share the issue space with the team." "Who is on our tzTrack space?" "Take Sam off our tzTrack space."

<a id="what-your-ai-tool-does"></a>

## What your AI does

- Adds each person using their Turn Zero sign-in email and the access level you choose.
- Lists members or changes their access when you ask.
- Helps members select the shared space after signing in through their own AI assistants.

## What you need

- A space you own. Only the account that owns the space can add, remove, or change members. An Admin member cannot manage membership.
- Each person's Turn Zero sign-in email address.
- Each person's own Turn Zero account. Anyone without one can create a free account before you add them to the space.
- Sharing needs no paid plan for either person.

## Before your AI starts

- Confirm the signed-in account owns the intended space.
- Get each email address from the person; do not guess one.
- Pass the value for the access level the person chose. Use `view` for Viewer, `report` for Reporter, `contribute` for Contributor or `owner` for Admin. The default is Contributor. [Sharing a space](/tztrack/concepts/sharing-a-space/) gives the permissions and visibility.

## Steps

These instructions are for your AI assistant.

### 1. Add each person

Pass the space ID as `space` to either tool. On the Turn Zero connection, call `tztrack_share_space` with the email in `add`. On a direct tzTrack connection, call "share_space" with `space`, `action: "add"`, `email` and `level`. An add for an existing member changes their level. Both routes accept `restricted` and `accounts` on an add and validate both. With `remove`, either setting is refused `invalid_request` and nothing changes.

If the call returns `no_such_account`, check the address or have the person create an account first. No pending invitation is saved.

Adding a member or changing their permission level, restricted-issue access or group can send one email to their Turn Zero sign-in address. It names the space and gives their new access. To find the space, they can ask their connected AI assistant to list their issue spaces.

Check `mail` in the response for the affected account. `sent: true` means Turn Zero passed the message to its email service. The share takes effect even when an email is skipped, such as when the account has no verified sign-in address or a limit is reached. An unchanged call returns an empty `mail`.

Set `restricted` to `true` only for a member who should read restricted issues. A new row otherwise reads none; Viewer and Reporter never read them. An older row without the setting keeps its earlier level-based access. Leaving the setting out preserves the row's value.

To bound a member to a group, give 1 to 19 other account IDs in `accounts`. The member's own account is included too, at most 20 altogether. The member reads only that group's reports, never restricted issues or another account's comments. Labels and filters do not grant access.

For an existing row, leaving `accounts` out keeps its bound; `accounts: null` removes it. A bounded Contributor works only tasks the group opened, and off-list calls such as cache and export refuse `grant_required`. [Sharing a space](/tztrack/concepts/sharing-a-space/#what-a-member-sees) gives the full bound.

### 2. Each person signs in

Have each member [connect their AI assistant to Turn Zero](https://turnzero.ai/cloud/getting-started/connect-your-tool/) and sign in with their own account. Sharing grants their account access; it does not sign them in.

### 3. Select the shared space

Use the member's signed-in connection to find the shared space. On the Turn Zero connection, call `tztrack_list_spaces`. On a direct tzTrack connection, call `list_spaces`. Find the space by name and pass its `id` as `space` in issue calls. If the member can use only one space, the tool can select it automatically.

In a local project, read the existing `.tztrack/config.json`. If the person wants to save the space selection, follow [Use one space across sessions](/tztrack/guides/use-one-space-across-sessions/). Fileless chats pass the space's id, using an approved saved line in client memory or project instructions where available; a setting file is optional and does not grant access.

### 4. Confirm membership

Call `tztrack_list_space_members` with the intended `space`. Check `level`, its name in `role`, `restricted`, and `accounts` where bounded. `users` counts members plus the Owner. A share call needs an add or remove; use the listing call to inspect membership.

### 5. Remove a member

When the Owner asks, use the sharing tool from step 1. On the Turn Zero connection, call `tztrack_share_space` with the member's sign-in address in `remove`. On a direct tzTrack connection, call "share_space" with `space`, `action: "remove"` and the address in `email`. Access stops on the member's next signed-in request. Anyone holding a [cache download link](/tztrack/concepts/the-cache/#how-it-is-filled) issued before removal can use it until its ten-minute expiry. The archive contains the space’s records at download time. It uses the restricted-issue access saved when the link was created. Removing a member leaves copies they already unpacked in place.

Removing a member can send them one email naming the space and saying their access ended. Check `mail` for whether Turn Zero handed it to its sender.

## Expected result

Members use the same issue database with their own sign-ins and assigned permissions. The owner can inspect or change membership through their AI assistant.

## Refusals

Common refusals are below; [Refusals](/tztrack/reference/refusals/) lists the rest.

| Refusal | Status | Cause | Remedy |
| --- | --- | --- | --- |
| `no_such_account` | 404 | The email does not match an existing account. | Check it or have the person create an account, then retry. |
| `space_not_owned` | 403 | The signed-in account does not own the space. | Ask the actual space owner to manage membership. |
| `credential_required` | 401 | Sign-in is incomplete. | Complete sign-in through the AI assistant. |

## Related

- [Sharing a space](/tztrack/concepts/sharing-a-space/) explains owners, members, and levels.
- [Waiting and claims](/tztrack/concepts/waiting-and-claims/) gives the waiting for values.
- [The setting file](/tztrack/reference/the-setting-file/) gives the file that connects each member.
