Skip to content

Bug: Manually-added domains missing from dashboard invite flow dropdown #5872

Description

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

  1. Org has a primary domain with source: manual (added via manage_organization_domains or admin tooling, not via WorkOS OAuth)
  2. Org admin goes to dashboard invite flow
  3. Domain dropdown does not show the manually-added primary domain
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclaude-triagedIssue has been triaged by the Claude Code triage routine. Remove to re-triage.priority:P1High priority: important bug or follow-up, not immediate P0

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions