LangSmithOnboarding

Cloud Admin Setup Guide

Set up your LangSmith Cloud organization step by step, from workspaces and SSO through to your first traces.

This guide walks through your LangSmith Cloud setup in order, from org structure and SSO through to your first traces flowing in (section 9).

Who does what

  • LangSmith admin: someone with the Organization Admin role in LangSmith. Does the steps inside LangSmith.
  • IT admin: whoever manages your company's sign-in system (Okta, Entra, Google Workspace…). Does the steps there.
  • Each step is labeled (LangSmith admin) or (IT admin). Most steps need just one of them. A few, like testing sign-in, need both.

Before you begin

  • Use the Admin Readiness Review alongside this guide to track progress. Each section notes which checklist topic it covers.
  • Know your region first. The SSO, SCIM and tracing URLs depend on it: GCP US (smith.langchain.com), GCP EU, GCP APAC, AWS US or Azure US.
  • This guide covers LangSmith Cloud. For self-hosted LangSmith, see the Self-Hosted Onboarding Overview.

Values for your region

Your IT admin will need these for SSO and SCIM.

RegionSSO Entity ID / IdentifierSSO ACS / Reply URLSCIM base / Tenant URL
GCP US (smith.langchain.com)https://auth.langchain.com/auth/v1/sso/saml/metadatahttps://auth.langchain.com/auth/v1/sso/saml/acshttps://api.smith.langchain.com/scim/v2
GCP EUhttps://eu.auth.langchain.com/auth/v1/sso/saml/metadatahttps://eu.auth.langchain.com/auth/v1/sso/saml/acshttps://eu.api.smith.langchain.com/scim/v2
GCP APAChttps://apac.auth.langchain.com/auth/v1/sso/saml/metadatahttps://apac.auth.langchain.com/auth/v1/sso/saml/acshttps://apac.api.smith.langchain.com/scim/v2
AWS UShttps://aws.auth.langchain.com/auth/v1/sso/saml/metadatahttps://aws.auth.langchain.com/auth/v1/sso/saml/acshttps://aws.api.smith.langchain.com/scim/v2
Azure UShttps://azure.auth.langchain.com/auth/v1/sso/saml/metadatahttps://azure.auth.langchain.com/auth/v1/sso/saml/acshttps://azure.api.smith.langchain.com/scim/v2

0. Before you start

  • (LangSmith admin) Confirm at least 2 org admins can log in to LangSmith
  • (LangSmith admin) Line up your IT admin for the SSO and SCIM steps
  • (LangSmith admin + IT admin) Agree on who gets which access level (see section 2) before creating any IdP groups
  • Okta only: confirm your Okta plan includes Okta Lifecycle Management. It's required for SCIM on Okta.

1. Org structure & workspaces (LangSmith admin)

Checklist: Org Structure & Workspaces

How LangSmith is organized

  • Organization: your company. Usually one per company. SSO, SCIM, billing and org roles live here.
  • Workspace: the main access boundary. People get roles per workspace, and traces, datasets, prompts and API keys belong to one workspace. Resources can't be shared across workspaces.
  • Agent: each AI application you send traces from. An agent has four built-in environments: Production, Staging, Development and Local. Traces from each stage stay separate without any naming convention.
  • Older org? Some existing workspaces are still project-based, grouping traces by tracing project instead of agent. If the top-left of LangSmith shows the LangSmith logo instead of your workspace name, you're on one. Section 9 notes the one setting that changes.

What we recommend

  • One workspace per team or business unit (e.g. "Claims AI", "Customer Support"). Each team's agents live in its workspace.
  • Don't make separate workspaces for prod and staging. Use the agent's environments instead. Separate workspaces stop you from promoting prompts and reusing datasets between stages.
  • Sharing one workspace across teams? That works too: give each team its own agents and use ABAC (section 5) to limit who sees which traces.

To do

  • Assign at least 2 org admins
  • Plan workspaces before adding more users
  • Agree on a naming convention and an owner for each workspace
  • Create your first workspace before SSO. SSO sets a default workspace for new users.
  • Finalize workspace names before SCIM. SCIM group names include the workspace name, groups can't be renamed through SCIM, and names are matched exactly, spaces included (ProdTeam doesn't match Prod Team).

📖 Workspace structure · Create a workspace · Organization roles

2. Roles (RBAC) (LangSmith admin)

Checklist: User Roles & RBAC

  • Org roles: Admin, Operator, User, Viewer, Restricted
  • Workspace roles: Admin, Editor, Viewer, plus custom roles (Org Admins and Operators can create them)
  • Least privilege: not everyone should be a Workspace Admin
  • Create any custom roles before SCIM. SCIM group names include the role, and a group whose role doesn't exist is rejected with a provisioning error.
  • Plan the roles with the RBAC & SCIM Provisioning Guide. It includes a custom role builder and previews what each user can access.

📖 RBAC · Create a custom role

3. SSO (single sign-on)

Checklist: SSO & SCIM

SSO lets your team sign in to LangSmith with your company's identity provider (IdP), such as Okta or Entra, instead of a separate password. Your IT admin follows the provider's steps in the LangSmith docs, using the values for your region from the table at the top of this guide. This section covers what to decide first and what to watch for.

New users and JIT

  • What JIT is: Just-in-time (JIT) provisioning is on by default once SSO is set up. The first time someone signs in through SSO, LangSmith adds them to the org automatically, with the default workspaces and role set in Settings → SSO configuration.
  • Viewer is a safe default role. Changing these defaults affects new users only.
  • Create your first workspace before SSO (section 1), so you can pick it as the default.

Set up SSO for your identity provider

Okta · Okta SSO steps

  • Use the LangSmith app from the Okta Integration Network (OIN), not a custom SAML app. It's the recommended path for both SSO and SCIM.
  • Okta asks for host names, not full URLs: AuthHost is e.g. auth.langchain.com and LangSmithUrl is e.g. api.smith.langchain.com on GCP US.
  • Fill in LangSmithUrl now if you plan to use SCIM. SCIM needs it.

Microsoft Entra ID · Entra SSO steps

  • Create your own Non-gallery app. The "LangChain LangSmith" listing in the Entra gallery doesn't support SSO.
  • Set the Name ID to user.objectid with format Persistent. SCIM uses it to match users.
  • If the email claim uses user.mail, every user needs an email filled in.

Google Workspace · Google SSO steps

  • Google gives you metadata XML, not a URL.
  • Users' LangSmith emails must match their Google emails.

Other SAML 2.0 providers (Rippling, Ping, OneLogin, JumpCloud…) · SAML SSO steps

  • Use a Persistent Name ID with a unique user ID that never changes. Avoid email as the Name ID if you plan to use SCIM.
  • Send sub and email claims.

Then, for any provider:

  • (LangSmith admin) Settings → SSO configuration → paste the metadata URL (or XML) from your IT admin → set the default workspace and role for new users
  • (IT admin + LangSmith admin) Test with one user through the login URL on the SSO configuration page before assigning everyone

4. User provisioning

Checklist: SSO & SCIM

User provisioning decides who gets into LangSmith and with which role. Choose one way per org:

OptionHow it worksBest for
A. SCIM (recommended)Your IdP creates and removes users and sets their roles from groupsMost orgs. Removals take effect on the IdP's next sync, without waiting for a sign-in.
B. SSO Groups SyncRoles come from groups sent at each sign-inIdPs that can't do SCIM. Access only updates when the user next signs in.
C. JIT + manual rolesUsers join through SSO with the default role, and a LangSmith admin changes roles in LangSmithSmall teams, or if neither A nor B works

Don't run SCIM and SSO Groups Sync together.

Option A: SCIM

Before you turn on SCIM (any IdP)

  • (LangSmith admin) Turn JIT off right before you turn on SCIM. SCIM overrides roles given by JIT or by hand, so having both on causes conflicts. Turn off Enable JIT provisioning in Settings → Organization → Access and Security → General, or use the API. Once it's off, people can only get in after SCIM adds them or an admin invites them. JIT settings
  • (LangSmith admin) Generate a SCIM token and pass it securely to your IT admin. It's shown only once.
  • Okta only: SCIM requires Okta Lifecycle Management.
  • New users get a verification email that expires in 24 hours. If it expires, remove and re-add the user in your IdP.

SCIM group names (any IdP)

  • Format: LS:Organization User:<Workspace>:<Role>, and LS:Organization Admins for org admins
    • <Workspace> must match the workspace name in LangSmith exactly
    • <Role> is Admin, Editor, Viewer, or the name of a custom role
  • Generate exact names with the RBAC & SCIM Provisioning Guide
  • The LS: prefix is optional. If your naming rules don't allow :, pick a custom separator: -, _, space or & (one per org). If spaces aren't allowed, OrganizationUser also works.
  • One LangSmith group per person per workspace. If two groups give different roles in the same workspace, the most recently created group wins. Org Admin groups always win. Role precedence
  • Want to keep your existing group names? Link an IdP group of any name to a User Group in Organization Settings → User Groups → IdP group, then give the User Group its workspaces and roles in LangSmith (Enterprise plan, with RBAC and ABAC enabled). Entra and some other IdPs can also send the group's description as its name (details); Okta can't.

Planning SCIM groups for multiple workspaces

For example, one workspace per department. Each IdP group gives its members one role in one workspace, so you need one group per workspace and role you use:

SCIM groups for multiple workspaces: each group in your identity provider maps to one role in one LangSmith workspace, and LS:Organization Admins gives Admin in every workspace

  • Order matters: create the workspace (and any custom roles) in LangSmith first, then its groups in your IdP. SCIM rejects a group whose workspace or role doesn't exist yet.
  • Only create the groups you need. Most departments need just two or three roles, e.g. Editor for the people building agents and Viewer for reviewers. Two roles across five departments is ten groups.
  • Keep LS:Organization Admins small. Its members are Admin in every workspace.
  • People who work across departments can be in several groups and get access to each of those workspaces.
  • Adding a department later: create its workspace in LangSmith, then create its groups and assign them to the LangSmith app in your IdP.

Set up SCIM for your identity provider

Okta · Okta SCIM steps

  • Already signed in through the OIN app? Turn on provisioning on that app.
  • SSO runs through a custom SAML app? Add the OIN LangSmith app for SCIM only (recommended) and hide its icon from users, or turn on SCIM on the custom app.
  • Check LangSmithUrl is filled in before you turn on the API integration.
  • Okta pushes only the group name, so group names must follow the format exactly. Use Push Groups.

Microsoft Entra ID · Entra SCIM steps

  • Tenant URL is the SCIM base URL for your region, e.g. on Azure US, https://azure.api.smith.langchain.com/scim/v2
  • Map user externalId to objectId, so it matches the Name ID from SSO.
  • Leave Delete off for the first sync, check it, then turn Delete on.

Other identity providers · SCIM for other providers

  • LangSmith has tested SCIM with Okta and Entra only. Others may work if they support SCIM 2.0 provisioning to a custom app.
  • Map externalId to the same value as the SAML Name ID (attribute mapping).

Then, for any provider: check the first sync with a test user, and test that a removed user loses access.

Option B: SSO Groups Sync

LangSmith reads the user's groups from the SSO sign-in each time they log in, and gives them workspaces and roles using the same SCIM group names format as Option A.

  • Trade-off: someone removed from a group keeps their access until their next sign-in. Turning on Require matching group to sign in blocks anyone whose groups don't match.
  • (IT admin) Send group names in the SSO sign-in as a multi-valued attribute called groups. Steps for Okta, Entra and others. Google Workspace doesn't send groups at sign-in on its own, so it needs a directory sync tool, or SCIM instead.
  • (LangSmith admin) In Settings → SSO configuration, map the groups attribute as an array and turn on SSO Groups Sync. Configuration
  • Test: sign in as a user who's in one LangSmith group, and check they land in the right workspace with the right role.

Option C: JIT + manual roles

  • Keep JIT on (it's on by default). Users join through SSO with the default workspace and role from section 3.
  • (LangSmith admin) Change roles and workspace access in LangSmith as needed.
  • Removing someone means removing them in both your IdP and LangSmith.

After setup (any option)

  • Optional (LangSmith admin): Enforce SSO only. Do this last, once sign-in and provisioning work, so no one gets locked out. You must be signed in through SSO to turn it on, and it turns off invites.

5. Access control: ABAC & resource tags

Checklist: ABAC Policy + Resource Tags

  • Tag resources, e.g. Environment = prod/staging and Application = agent name
  • Use ABAC to restrict access within a workspace, e.g. hide trace inputs/outputs from roles that don't need to see them
  • Build and test policies with the ABAC Policy Builder. It lets you check who can see what before you apply anything, and you can copy the policy JSON from it directly.
  • ABAC hides data from some users; it doesn't remove it. Sensitive personal data should still be masked or pseudonymized before it's sent to LangSmith.

📖 Resource tags · ABAC · Hide inputs/outputs

6. Data retention & usage limits

Checklist: Data Retention + Usage Limits

  • Base retention: 14 days. Extended retention (up to 180 days on Cloud) can be set per workspace and is billed differently from base traces.
  • Online evaluators and automation rules move the traces they act on to extended retention when their retention setting is on. Evaluators can opt out.
  • Review retention with your compliance team before tracing at volume
  • Set an org-level usage limit as a safety cap

📖 Data retention · Usage limits · Configure extended retention

7. API keys

Checklist: API Key Strategy

Your agents use an API key to send traces to LangSmith (section 9). There are three kinds:

Key typeWhat it can doUse it forIf its creator leaves
Personal access token (PAT)Everything its user can doLocal development, personal scriptsStops working
Service keyScoped to one workspace, several, or the whole org, with a role you chooseCI/CD, evaluation jobs, automation that reads or manages dataKeeps working
Tracing key (starts lsv2_tr_)Only sends traces, to the workspaces you pick. Can't read any data.Production agents that only need to send tracesKeeps working

What we recommend

  • Production agents: a tracing key, or a service key scoped to just that workspace. A leaked tracing key can't be used to read your traces.
  • CI/CD and evaluation jobs: a service key scoped to the workspaces they need
  • Local development: each developer's own PAT
  • Never use a PAT in production. It stops working when that person leaves or is removed by SCIM. Before turning on SCIM, check which keys your apps use.
  • Set an expiration date on every key, keep keys in a secrets manager (not in code), and document which key is used where
  • A key scoped to more than one workspace also needs LANGSMITH_WORKSPACE_ID set, so traces land in the right workspace. Find the ID in Settings → General.
  • Create keys in Settings → API Keys. Tracing keys need the Workspace Admin or Editor role (or a custom role with that permission).

📖 API keys

8. Audit logs & security contact

  • Org Admins and Operators can view audit logs of key admin changes in Settings → Audit logs
  • Add a technical/security contact email in LangSmith settings

📖 Audit logs · Why the security contact matters

9. Connect your agent and get traces flowing

This is the finish line for setup: your agent sends traces to LangSmith and your team can see them.

How it works: you add the LangSmith SDK (or an OpenTelemetry exporter) to your agent, give it an API key, and tell it which agent and environment the traces belong to. Your agent keeps running in your own infrastructure; it just also sends a record of each run to LangSmith.

1. Register the agent (once per agent). In the right workspace: + Agent → Connect → Connect an existing agent → enter an Agent name and an Agent ID (e.g. claims-assistant). The Agent ID can't be changed later. You'll use the Agent ID, not the display name, in your code's settings.

2. Configure your code. Follow the tracing quickstart for the exact setup. You'll set:

  • Your API key (see section 7)
  • Your region's API URL, or your key won't be recognized. E.g. GCP US: https://api.smith.langchain.com (the default), Azure US: https://azure.api.smith.langchain.com, GCP EU: https://eu.api.smith.langchain.com
  • The Agent ID and environment (local, development, staging or production)
  • Project-based workspace? Skip step 1 and set a project name instead of the agent and environment.

3. Pick the option that matches your stack

Your agent is built with…What to doEffort
LangChain, LangGraph or Deep AgentsNothing beyond step 2. Tracing turns on from the settings.Lowest
OpenAI or Anthropic SDK directlyWrap the client and mark your main function as traceable, so each request shows up as one trace with the model calls inside it (quickstart)Low
Another framework (OpenAI Agents SDK, CrewAI, Google ADK, Vercel AI SDK, Pydantic AI, Strands, Semantic Kernel, Mastra…)Follow that framework's guide in Integrations. Most are a few lines.Low
Already using OpenTelemetry, or another languagePoint your OTLP exporter at LangSmith (OpenTelemetry guide), or use the Go or Java SDKMedium
Custom code / anything elseMark the functions you want to see as traceable (how)Low–medium

4. Check it worked

  • Run your agent once, then open the agent in LangSmith → Tracing → pick the environment you set. The trace should appear within a few seconds.
  • Nothing shows up? Check tracing is turned on, both the Agent ID and the environment are set, and the agent was created first.
  • Authentication error (401/403)? Usually the wrong API URL for your region, or a key from a different workspace.
  • 409 error? The Agent ID belongs to an archived agent. Use a different ID.

Good habits

  • One agent per application, with its environments for each stage. Don't create a new agent per deployment.
  • Use a tracing key in production (section 7), and keep the same code across stages: only the environment setting changes.
  • Mask sensitive data before it's sent (see section 5).

📖 Tracing quickstart · Log traces to an agent · Integrations