Skip to content

Link dataset contributors to user accounts (auto-create placeholder accounts) #6976

Description

@xuang7

Feature Summary

Contributors are currently plain-text metadata. When a contributor's email matches a registered user, the two are not connected, and when the person registers later, their past attributions are not associated with their account.

This feature links contributor records to user accounts by normalized email address. Contributor metadata remains local to each dataset. For example, the same person may appear as John Doe in one dataset and Jonh Doe in another. These names, roles, and affiliations are not shared globally. However, both contributor records reference the same global user account through the shared email address.

This feature links contributors to user accounts by email. If a contributor's email does not match any existing user, a placeholder account is created automatically. When that person later registers with the same email, they claim the placeholder account, and their past dataset attributions are associated with it.

Proposed Solution or Design

User Experience

When adding a contributor, the user may provide:

Name: John Doe
Email: johndoe@example (optional)

  • If an email is provided, the platform resolves it against existing user accounts.
  • If a matching user exists, the contributor is linked to that account.
  • If no matching user exists, the platform creates an inactive placeholder account and links the contributor to it.
  • If no email is provided, the contributor is saved as dataset-local metadata only, with uid = NULL. No user account or placeholder account is created.
Image

Storage

  • dataset_contributor gains a nullable uid FK (ON DELETE SET NULL)
  • user gains is_placeholder BOOLEAN NOT NULL DEFAULT FALSE; ck_nulltest is relaxed to allow credential-less placeholder rows

Linking (file-service): on saving contributors, an email is resolved against the user table (normalized: lower/trim).

  • Match: bind uid
  • no match: create a placeholder user (INACTIVE, is_placeholder = true, comment notes the origin dataset) and bind it.

Claiming (auth)

  • Password registration: if the email matches a row with is_placeholder = true, set the password on that row and clear the flag instead of rejecting with "exists". Only credential-less placeholder rows are claimable; real accounts (including INACTIVE ones awaiting approval) are never claimable.
  • Google login: the existing claim-by-email branch additionally clears is_placeholder. Google login already proves mailbox ownership.

Trust model: a claimed account stays INACTIVE, so login is still gated by the existing admin approval.

Placeholders are only created by users with dataset write access, and each has a traceable sponsor (the dataset owner), so admins can verify claims out-of-band.

Affected Area

Storage / Metadata

Activity

  1. added theissue type on Jul 28, 2026
  2. self-assigned this
    on Jul 28, 2026
  3. chenlica commented on Aug 2, 2026

    @chenlica
    Contributor

    @xuang7: can you summarize our offline discussion ideally with visual diagrams?

  4. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @xuang7!

    It looks like the issue description doesn't quite follow our template yet:

    • The Proposed Solution or Design section is empty; please fill it in.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  5. xuang7 commented on Aug 3, 2026

    @xuang7
    ContributorAuthor

    @xuang7: can you summarize our offline discussion ideally with visual diagrams?

    The issue description has been updated. In summary, the dataset owner can update contributor metadata for a specific dataset. The system uses the provided email as the unique identifier to match an existing user account. If no matching user exists, it creates an inactive placeholder account and links it to the contributor record.

    The email field can also be optional. If no email is provided, the contributor remains plain-text, dataset-local metadata and is not linked to any user account.

    • Dataset contributor metadata is not shared globally.
    • User identity is shared globally through email.

    Multiple contributor records from different datasets can therefore link to the same user account, even if the displayed name, role, or affiliation differs across datasets.

  6. added a commit that references this issue on Aug 3, 2026
    2a53535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions