Skip to content

feat(migrate): import users from an existing identity system #208

Description

@Bccorb

Part of fells-code/seamless-auth-api#334. Depends on fells-code/seamless-auth-api#336 (bulk import endpoint).

Problem

Moving an organization onto Seamless Auth starts with getting its users out of the current system. There is no tooling for that today.

Proposal

A seamless migrate command that reads users from a source, maps them, and imports them through the bulk import endpoint.

  • Sources, in order:
    1. CSV (covers HR and payroll exports, and anything else as a fallback)
    2. Microsoft Entra ID (Microsoft Graph)
    3. Google Workspace
    4. Okta
    5. Auth0, AWS Cognito, Firebase Auth, Keycloak realm export
  • Mapping file: which source fields become email, phone, display name, roles and organization, kept in the repo of the migration so it can be re-run
  • --dry-run by default on first run, showing what would be created, updated, skipped and rejected
  • Report: a file (CSV and JSON) of every row and its outcome, written so it can be handed to the organization as a migration artifact
  • Re-runnable: idempotent on the source system's user ID
  • Never reads or exports passwords or password hashes, even where the source offers them

Notes

  • Start with CSV and Entra ID. Each additional source can be its own follow-up issue.
  • Source credentials (Graph app secret, Okta token) come from env vars or the profile, never flags, so they stay out of shell history.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions