Admin-only invite flow
Create, resend, and track user invitations.
The durable data model is in place for invite records, expiry, role assignment, acceptance tracking, and later audit linkage.
Create invite
7-day expiry
Invitation states
Tracked
Pending
Invite created, token active, awaiting first sign-in.
Accepted
Invite consumed and user profile created with assigned role.
Expired / revoked
Kept for audit visibility and resend workflows.
Seed data
Invite records
| Role | Status | Expires | Token hash | |
|---|---|---|---|---|
| scheduler@rostermd.example | scheduler | pending | 2026-05-01T00:00:00.000Z | 58f83d31b5cdd734… |
| doctor-new@rostermd.example | doctor | accepted | 2026-05-03T00:00:00.000Z | 7b2c800a900e71e1… |