Skip to content

bulk import - users and organizations #71

@edospadoni

Description

@edospadoni

Overview

Implement Bulk Import feature for users and organizations (distributors, resellers, customers) via CSV file upload with validation, preview, and confirmation workflow.

Requirements

Core Features

  • CSV template download per entity type
  • CSV file upload and server-side validation
  • Row-by-row validation report (errors, warnings, valid rows)
  • Import confirmation step with validated import_id
  • Bulk creation of entities with proper hierarchy assignment

Entity Types

  • Users — bulk create with organization assignment, roles
  • Distributors — bulk create (Owner only)
  • Resellers — bulk create with distributor assignment
  • Customers — bulk create with reseller assignment

Backend APIs Available

All necessary REST APIs are implemented:

  • GET /api/{entity}/import/template - Download CSV import template
  • POST /api/{entity}/import/validate - Validate CSV file, returns row-by-row report + import_id
  • POST /api/{entity}/import/confirm - Execute validated import using import_id
  • GET /api/users/import/template - Download CSV import template for users
  • POST /api/users/import/validate - Validate CSV file for bulk user import
  • POST /api/users/import/confirm - Execute validated user import

Frontend

  • Import wizard component (upload → validate → review → confirm)
  • Validation results table with per-row status
  • Error/warning display with actionable messages
  • Success/failure summary after import execution

Design mockup: #69

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions