members: an operator can record or correct a member's email on member detail, and the list shows it (ADR 0251 follow-up) #1584

Open
opened 2026-09-18 15:33:48 +00:00 by ben · 0 comments
Owner

Why

ADR 0251 asks for a member's real email when they are added, but nothing can record one afterwards. Every member added before 2026-09-18 has none. For them the email-keyed ports answer ErrNoEmailOnRecord and the gate refuses data-collections with "ask an operator to add it" — and the operator has nowhere to add it. A typo at add time is also permanent.

What

  • A members verb SetEmail(actor, personID, email): NormalizeEmail, the one-address-one-person refusal, a kanidm mail write (/v1/person/{id}/_attr/mail), audit-logged, then ReconcileRoles so the owed grants land at once.
  • Detail and the members Row carry the address (joined from the IdP at read time — the ledger holds no email).
  • Member detail (P6-S4) shows the address with an edit affordance; the members list (P6-S1) shows it under the username. A member with none reads "no email on record" with the reason it matters.
  • UX contract: p6-s4-member-detail.html, p6-s1-members.html, the flow. Needs a wireframe pass before build.

Note

Correcting an address after a Grist or Listmonk account exists under the old one leaves the old account behind; say what happens to it (re-grant under the new address, demote the old) in the design.

Acceptance

  • An operator records an address for a pre-ruling member; their role then reads applied on data-collections and newsletters without a redeploy.
  • The refusals match the add-member path, shown verbatim.
## Why ADR 0251 asks for a member's real email when they are added, but nothing can record one afterwards. Every member added before 2026-09-18 has none. For them the email-keyed ports answer `ErrNoEmailOnRecord` and the gate refuses data-collections with "ask an operator to add it" — and the operator has nowhere to add it. A typo at add time is also permanent. ## What - A members verb `SetEmail(actor, personID, email)`: `NormalizeEmail`, the one-address-one-person refusal, a kanidm `mail` write (`/v1/person/{id}/_attr/mail`), audit-logged, then `ReconcileRoles` so the owed grants land at once. - `Detail` and the members `Row` carry the address (joined from the IdP at read time — the ledger holds no email). - Member detail (P6-S4) shows the address with an edit affordance; the members list (P6-S1) shows it under the username. A member with none reads "no email on record" with the reason it matters. - UX contract: `p6-s4-member-detail.html`, `p6-s1-members.html`, the flow. Needs a wireframe pass before build. ## Note Correcting an address after a Grist or Listmonk account exists under the old one leaves the old account behind; say what happens to it (re-grant under the new address, demote the old) in the design. ## Acceptance - [ ] An operator records an address for a pre-ruling member; their role then reads applied on data-collections and newsletters without a redeploy. - [ ] The refusals match the add-member path, shown verbatim.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1584
No description provided.