What is a workspace?

A workspace in Crew represents one client company. Acme Co is a workspace. Northwind is a different workspace. BlueWave is a third. When you log into Crew and see a list of requisitions, those requisitions belong to one workspace. When you create a new requisition, it gets stored under one workspace. When you switch workspaces, everything you see changes — different requisitions, different members, different campaigns, different forms.

A workspace's settings in Crew — each client company is its own workspace.

In product terminology, a workspace is sometimes called a "tenant." Both words mean the same thing: one client's isolated slice of Crew.

Why workspaces exist

Crew is a multi-tenant platform — a single deployment serves dozens or hundreds of distinct client companies at once. That means inside one database, one application server, one ALB, you have many clients' hiring data sitting next to each other.

This is a great architectural choice (cheap, simple to operate, easy to upgrade) but it raises an immediate operational nightmare: what stops one client from seeing another's data?

The answer is the workspace concept, enforced at three layers:

  1. At the application layer. Every server-side request reads the user's "active workspace" cookie, verifies the user has a membership in that workspace, and stamps the workspace id onto the request context. There is no "see everything" path for normal users.

  2. At the database layer. Every tenant-scoped table has a tenant_id column. Every query is wrapped in a function that sets a Postgres session variable (app.current_tenant) to the workspace id. Row Level Security policies on each table compare row's tenant_id against that variable. A query that "forgot" to set the variable returns zero rows — better to see nothing than to see everything.

  3. At the role layer. The runtime database role (app_user) is configured with NOBYPASSRLS=false, meaning RLS actually enforces against it. The master role (postgres) can bypass RLS but is never used by the running application — only by one-off migration tasks.

Three layers. Defense in depth. The result: there is genuinely no way for a workspace's data to appear in another workspace's UI, even by mistake. Talkpush admins (more on them below) can cross workspaces explicitly through the admin panel — that's a feature, not a bug — but normal users cannot.

What lives inside a workspace

Pretty much everything Crew does, scoped to that one client:

If you can name a noun in Crew, it almost certainly belongs to a workspace. The only things that don't are: the user identity itself (people exist across workspaces) and the global stage template catalog (the canonical building blocks every workspace customizes).

How a workspace is identified

A workspace has three identifiers, each used in different contexts:

  • id — internal bigint, used in foreign keys and database joins. Users never see this.
  • slug — a URL-safe lowercase string like acme-co or bluewave. Used in URLs and the workspace switcher.
  • subdomain — reserved for the eventual subdomain-per-workspace rollout (acme-co.crew.talkpush.com). Currently parallel to slug but kept separate because DNS implications differ.

Each is unique across the platform. You can't have two workspaces with the same slug, even if they belong to different parent companies.

How workspace membership works

A user belongs to a workspace through a workspace_user row. That row carries:

  • The user id.
  • The workspace id.
  • The user's permission template in this workspace (Permissions and roles).
  • The user's profile fields scoped to this workspace (name, job title, etc.) — separate from any other workspace they might also belong to.
  • Per-user permission overrides on top of the template.
  • The user's status (Pending if they haven't accepted yet; Active once they have).

The same human can have multiple workspace_user rows — one per workspace they belong to. Northwind's primary admin is also a viewer in Acme Co? Two rows. Same user. Different memberships. Different permissions in each.

Talkpush admins

There's a special tier of access above workspace membership: the Talkpush admin flag, set per user account. A Talkpush admin:

  • Has access to every workspace through the admin panel (/admin/workspaces).
  • Doesn't need to be a workspace_user in any specific workspace to enter it — the flag grants implicit access.
  • Inside a specific workspace, their permissions are still subject to that workspace's templates and overrides.

This is how Talkpush staff (account managers, support engineers, product) work across clients without being formally invited to every workspace. The flag is granted at user creation (via an admin invitation, separate from workspace invitations) and lives on the user row, not on any workspace.

Talkpush admins can also create new workspaces directly from the /admin/workspaces panel using the + New workspace button, without needing to go through a separate provisioning process. See Creating a new workspace for the steps involved.

See Managing workspaces as a Crew admin for the full admin panel reference.

Constraints and gotchas

  • You cannot move data between workspaces. A requisition created in Northwind can't be moved to Acme Co — they're separate worlds. If a role moves between clients, close the original and create a new one.
  • The same person in two workspaces is two membership rows, one user. Crew matches by email. If alex@example.com joins Northwind and later gets added to Acme Co, the existing user row gets a second workspace_user row — same login, two workspace contexts. The user picks which one to operate in via the workspace switcher.
  • Profile fields are per-workspace. The same person might be "Recruiter" in Acme Co and "Talent Manager" in Northwind. Job title is a workspace_user field, not a user field. Same for phone, city, work type, etc.
  • The active workspace is sticky. Once you pick a workspace, it stays selected (via cookie) until you switch or sign out. Don't be surprised if you bookmark a URL and it takes you to the wrong workspace's data — switch and re-bookmark.
  • Deleting a workspace is not exposed in the UI. It's a destructive operation that would cascade through hundreds of related rows. To deprovision a workspace, work with Talkpush support — there's a process that includes data export, member offboarding, and a hold period.

A concrete example

Acme Co and Northwind are both running on the same Crew deployment. Their data lives in the same Postgres database. From the recruiter team at Acme Co:

  • The workspace switcher shows only Acme Co (they're not members of Northwind).
  • Their requisitions list shows Acme Co roles only.
  • Their members list shows their colleagues only.
  • Searching for a candidate by phone number returns Acme Co candidates only, even if Northwind has a candidate with the exact same phone.

From a Talkpush account manager who covers both:

  • The admin panel shows both Acme Co and Northwind (and every other client).
  • Picking Acme Co puts the account manager in Acme Co context. Switching to Northwind drops them into Northwind context. Same person, two different contexts, instantly.
  • The account manager can never see Acme Co data while in Northwind context — the active workspace cookie scopes everything.

The isolation is the product. Without it, multi-tenancy would be a liability instead of an advantage.

See also