Problem
The domain dropdown in the dashboard invite members flow is not showing domains where source: manual, only showing domains sourced directly from WorkOS.
This means org admins cannot invite team members via the dashboard UI even when their primary domain is correctly set and verified.
Reproduction
- Org has a primary domain with
source: manual (added via manage_organization_domains or admin tooling, not via WorkOS OAuth)
- Org admin goes to dashboard invite flow
- Domain dropdown does not show the manually-added primary domain
- Admin cannot complete the invite
Example
- Org: LoopMe (
org_01KEC0X42PGV55T5N0GTQDAC6X)
- Primary domain:
loopme.com — verified, source: manual
- WorkOS domains:
loopme.ai, platform.loopme.ai (source: workos)
- Result:
loopme.com missing from dropdown; loopme.ai and platform.loopme.ai presumably appear
Root cause hypothesis
The invite flow dropdown is likely querying domains directly from WorkOS rather than from our DB, which contains both WorkOS-sourced and manually-added domains. The fix should pull from the DB (or merge both sources) so all verified domains for an org appear regardless of source.
Fix
The domain dropdown should include all verified domains for the org from the DB, not only those with source: workos.
Workaround (for affected members now)
Admin can manually add the team member via add_member_to_org tool without requiring the UI invite flow.
Related
Problem
The domain dropdown in the dashboard invite members flow is not showing domains where
source: manual, only showing domains sourced directly from WorkOS.This means org admins cannot invite team members via the dashboard UI even when their primary domain is correctly set and verified.
Reproduction
source: manual(added viamanage_organization_domainsor admin tooling, not via WorkOS OAuth)Example
org_01KEC0X42PGV55T5N0GTQDAC6X)loopme.com— verified, source: manualloopme.ai,platform.loopme.ai(source: workos)loopme.commissing from dropdown;loopme.aiandplatform.loopme.aipresumably appearRoot cause hypothesis
The invite flow dropdown is likely querying domains directly from WorkOS rather than from our DB, which contains both WorkOS-sourced and manually-added domains. The fix should pull from the DB (or merge both sources) so all verified domains for an org appear regardless of source.
Fix
The domain dropdown should include all verified domains for the org from the DB, not only those with
source: workos.Workaround (for affected members now)
Admin can manually add the team member via
add_member_to_orgtool without requiring the UI invite flow.Related