Context
When using the LangSmith API in a self-hosted environment, you may encounter issues when trying to add existing organization members to new workspaces programmatically. The API call may fail even when using the correct endpoint and authentication headers.
Answer
To enable adding existing organization members to workspaces via API, you need to enable a specific configuration flag in your Helm configuration.
Steps to resolve:
Enable the
workspaceScopeOrgInvitesEnabledflag in your Helm configurationApply the configuration changes to your deployment
Test the API call again using the workspace members endpoint
Once this flag is enabled, you should be able to successfully add existing organization members to workspaces using the API endpoint:
POST /api/v1/workspaces/current/membersFor more detailed information about user management in self-hosted environments, refer to the LangSmith Self-Host User Management documentation.