Symptom
In a self-hosted LangSmith organization, no human user holds the Organization Admin role. The only identity with that role is a service account (an API key). No human can grant themselves or anyone else the role through the UI, because managing organization roles itself requires the Organization Admin role.
Cause
The first Organization Admin is provisioned at install time from the initialOrgAdminEmail Helm value (config.initialOrgAdminEmail, or config.basicAuth.initialOrgAdminEmail when basic auth is enabled). If that value is set to a non-human identity, such as a service account used for automation, that identity becomes the only Organization Admin and no human is ever bootstrapped into the role.
Because "Only Organization Admins can assign or manage Organization Admins," no other member, regardless of their workspace role, can self-promote or promote someone else. Only an identity that already holds Organization Admin can grant that role.
Resolution
If a service account still holds the Organization Admin role and you have a valid API key for it, use that key to promote a human member through the organization members API. No database access is needed.
Get the Organization Admin role ID:
GET /api/v1/orgs/current/roles X-Api-Key: <service account key> X-Organization-Id: <org id>Look for the role with
display_name"Organization Admin" (internal nameORGANIZATION_ADMIN).Find the human member to promote:
GET /api/v1/orgs/current/membersNote their member
id. They must already be an active member of the org, meaning they've logged in at least once. If they haven't joined yet, invite them first:POST /api/v1/orgs/current/membersPromote them:
PATCH /api/v1/orgs/current/members/{identity_id} {"role_id": "<Organization Admin role id>"}
Promoting a member to Organization Admin automatically adds them as admin to every workspace in the org.
The API key you use must itself belong to an identity that holds the Organization Admin role. A key with only member-management permissions gets a 403 ("Only Organization Admins can assign or manage Organization Admins"). If no such key is available, you'll need to fall back to a direct database update instead; see the KB article on adding admin permissions via direct SQL in self-hosted LangSmith for those steps.
To avoid this situation going forward, set initialOrgAdminEmail to a real human user's email, not a service or automation identity, when installing or upgrading self-hosted LangSmith.