Summary
Admins should be able to associate a user with an organization directly from the organization detail screen, without having to navigate to Manage Users. This is the primary workflow for onboarding an organizer from a specific org.
Proposed UX
On the Organization detail screen (admin view), add an "Add Approved Organizer" section at the bottom of the panel:
- A single email input field
- An "Add" button
- On submit: look up the user by email in the
users table
- If found: create a
user_orgs record linking the user to this org (if one doesn't already exist), and set their role to organizer if it is currently guest
- If not found: create a new user row with that email, role
organizer, and org_id set to this org, then create the user_orgs record
- Display the current approved organizers for this org in a list, with a Remove button next to each one
Acceptance Criteria
Notes
- The
user_orgs table already exists and supports many-to-many user↔org relationships
- The
users.org_id FK is the user's primary org — linking via user_orgs is the correct path for multi-org membership
- No changes to the DB schema should be required
Summary
Admins should be able to associate a user with an organization directly from the organization detail screen, without having to navigate to Manage Users. This is the primary workflow for onboarding an organizer from a specific org.
Proposed UX
On the Organization detail screen (admin view), add an "Add Approved Organizer" section at the bottom of the panel:
userstableuser_orgsrecord linking the user to this org (if one doesn't already exist), and set their role toorganizerif it is currentlyguestorganizer, andorg_idset to this org, then create theuser_orgsrecordAcceptance Criteria
user_orgs, role upgraded toorganizerif guestorganizerrole, linked to orguser_orgsrow); does not delete the useruser_orgstable already supports this)Notes
user_orgstable already exists and supports many-to-many user↔org relationshipsusers.org_idFK is the user's primary org — linking viauser_orgsis the correct path for multi-org membership