Skip to main content
LangSmith uses a hierarchical structure to organize your work: organizations, workspaces, agents, and resources. This structure lets you balance collaboration with access control, allowing you to choose the right level of isolation for your organization’s needs. A workspace groups resources by agent, and each agent’s traces divide across environments drawn from a fixed set of four. This page explains two common approaches to organizing workspaces based on your organization’s isolation requirements:
For details on setting up organizations and workspaces, refer to Set up hierarchy.

Control access with RBAC and ABAC

The LangSmith permission system builds on the resource hierarchy:
  • With role-based access control (RBAC), user permissions are scoped to one or more workspaces, enforcing isolation between workspaces.
  • With more fine-grained attribute-based access control (ABAC), access can be further restricted or granted based on attributes such as tags or agents within a workspace. For example, ABAC enables restricting access to only development resources or only resources associated with a specific agent.

Isolate by workspace

This is the default model and recommended choice for most customers.
In this model, each business unit in the organization gets its own workspace. The workspace is the isolation boundary: it governs which data and resources that business unit can access. Within a workspace, business units group related resources by agent. In the diagram below, production and staging are an agent’s environments.
  • Pros: A single workspace allows all resources belonging to a business unit to be shared within that business unit. This makes collaboration and iteration within a unit straightforward. It also simplifies promotion from development to production. For example, the same prompt can be versioned and promoted to production using tags, without copying or duplication.
  • Cons: Development, test, and production work coexists in one workspace, so workspace-scoped RBAC alone does not separate them. Environments divide an agent’s traces without any convention to maintain. ABAC provides more granular permissions within a workspace by restricting access based on resource attributes, such as allowing a user to access only development resources.

Isolate by agent

In this model, multiple business units share a single workspace within an organization. They use agents, together with ABAC, to separate resources and govern access. As a result, shared resources such as prompts and deployments can be reused across business units. Access to sensitive resources like traces and datasets is limited to the owning business unit.
  • Pros: Common resources such as prompts and deployments can be shared and reused across business units, increasing collaboration and reducing duplicated work. Unlike isolating by workspace, collaboration can span across multiple business units within the workspace.
  • Cons: Isolation between business units is weaker than in multi-workspace models and depends on correct use of ABAC. Misconfigured tags or policies can expose sensitive traces or datasets across business units. Managing permissions across multiple business units can add operational complexity.