Skip to Content
How-to guidesShare a space

Share a space

Let a teammate work inside your space: the same terminal session, files, logs and previews, with no screen sharing and no second environment to rebuild. Share a space to pair on a change, hand over a debugging session, or let a teammate look at what a deputy is doing.

Before you start

  • Role: you own the space, or you are an org admin. Admins can share any space in the organization.
  • A space that runs with a team’s or a deputy’s credentials, rather than your own, can be shared by an org admin only. This includes a space launched from a manifest that a team owns.
  • You share with named people and teams. A space cannot be shared with the whole organization.

What recipients can do

A share is full use of the space. Recipients act with the owner’s connected credentials, so what they do in the space is done as the owner.

Recipients canRecipients cannot
Work in the same terminal session, from the web or the CLIDelete, archive or restore the space
Read logs, events, usage and changesRename or resize it
Open previews and portsEdit the network policy, the tool policy or the live overlay
Approve policy requestsChange its HTTP secrets
Upload filesShare it with anyone else
Stop and resume the space

Steps

You can start from the space itself or from the list. Both open the same Share window.

Share from the space

Open the space and click Share in the header, or open the space’s More actions menu and click Share. Only the space’s owner or an admin sees these entries. The Share window opens: continue from step 3 below.

Share from the list

  1. In the left rail, open Spaces.
  2. Open the menu on the space’s card and click Share.
  3. In the Share window, click the search box (Search teams and people…) and pick one or more teams or people.
  4. Pick how long the share lasts in the end-date menu next to the search box: No end date (the default), Ends in 1 hour, Ends in 1 day or Ends in 1 week.
  5. Read the notice: Anyone you add gets full shell access to this space. Tick the box labeled “I understand that recipients can use <owner>’s credentials through this space.” with the owner’s name in place of <owner>; your own name stands in when you are the owner.
  6. Click Add.
  7. Check the Who has access list. The first row is the owner. Each recipient has its own row, and a share with an end date shows when it ends.
  8. Click Done.

When an admin shares someone else’s space, the notice names the owner whose credentials recipients will use.

Give a share an end date

A share with an end date stops working at that moment. The recipient can no longer open the space, read its logs, or use it from the web, the CLI or the API, and the space leaves their Shared with me list. A terminal or preview they already had open ends within about a minute and a half, and the share is removed from Who has access.

To change the date, open Share on the space and open the end-date menu on the recipient’s row and pick a new end, or pick Remove end date to keep the share until you withdraw it. Changing the date does not disconnect the recipient or send them a new notice. A share that has already ended cannot be extended: share the space again to start a new one, and the recipient is notified as for any new share. You can set an end date up to one year ahead.

A team share ends for every member of the team at once, except members who still have access through another share that has not ended.

Withdraw a share

Open Share on the space again. In Who has access, click the trash icon on the recipient’s row and confirm with Remove access. The recipient’s open terminal and preview end within about 30 seconds, and every new attempt is refused.

The same happens when you remove someone from a team that has the share, when the team is archived, and when a member leaves the organization. A person who has access through both a person share and a team share keeps access until both are gone.

Shared indicator

A space that is shared carries a Shared badge, on its card in the list and in the space’s header. Hover it to see who has access: up to five names, then the number of others. Names of teams appear as they are. The badge updates as soon as you add or remove someone in the Share window.

A recipient sees Shared by with the owner’s name on the same badge.

Who is connected

When several people have the same space open, their avatars appear in the space’s header. Hover an avatar to see the name. When more than five people are connected, the first five show as avatars and a +N chip counts the rest. A short notice tells you when someone joins or leaves, and your own arrival and departure are never announced. Only people who can already open the space are listed, and the list updates about every ten seconds.

When an action is not yours

Deleting, archiving, restoring and resizing belong to the space’s owner or an admin; renaming belongs to the owner. As a recipient you still see these controls, dimmed, and hovering one tells you who can use it. Share is offered only to the owner and admins. If a request is refused anyway, you get a plain sentence such as “Only the space owner or an admin can delete this space.”, never a technical message.

What the recipient sees

  • An inbox item that says the space was shared with them, with a link to open it and, when the share has an end date, when it ends. If they have linked Slack, they also get a Slack direct message. They can dismiss the item. People who join a team after the share is made get the same notice when they are added, once, unless they already had access another way.
  • The space under Shared with me on the Spaces page, with its owner and, when the share ends, the end date. For a team share, the row also shows the team. When several shares reach them, the date shown is the latest, and none if any of them never ends. Select Open to go to it.
  • The space in marshal spaces list, in a second table headed “Shared with you”. It lists the name, full ID, owner (with the team for a team share), state and creation time. marshal spaces list --shared lists only those.

To connect from the CLI, use the full space ID:

marshal spaces connect <space-id>

A shared space is reached by its ID. Names and slugs belong to the owner, so the ID is the handle that always works.

Shared spaces and deputy runs

A deputy run’s space can be shared like any other. While someone holds the run’s wheel, recipients are locked out of the terminal, just like the owner. A share never lets a recipient take the wheel or continue a finished run. Those stay with the run’s own rules.

The audit trail

Every share, end-date change, expiry and withdrawal is in the audit log with who made it (an expiry has no person), the space and the recipient. Every terminal, CLI connect and preview opened in a shared space records who acted, who owns the space, and why access was allowed: as the owner, as an admin, through a share, or through a run. The owner sees recipients’ access in the space’s audit view.

What you should see

  • The recipient’s row appears under Who has access as soon as you click Add.
  • The recipient finds the space under Shared with me and attaches to the same terminal session you use.
  • After you withdraw a share, the space leaves the recipient’s Shared with me list.

Next

Read the audit log to see who connected to your space and why they were let in.