Organizations: multi-user customer accounts, roles, email invites #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Solves the bus-factor problem Nikola identified: a public-sector IT department where one person holds the account — that person leaves or is on vacation and nobody can reach the license dashboard.
Model (agreed direction)
adminandmember. The creating user is admin. Admins can: invite users by email, promote/demote admin, remove members, rename the org, manage license labels. Members can: view licenses/keys, view billing.Site half: an "Organization" dashboard section — member list with roles, invite form, rename, leave/remove.
This is the largest item of the batch (~the size of the original accounts feature). Store stays atomic-JSON; the shapes (
orgs,invites, membership on accounts) slot into the existing store.Depends on: email infrastructure issue.
Acceptance: register → org exists, self is admin; invite → mail → set password → member sees org licenses; promote/demote/remove enforced incl. last-admin rail; webhook-issued license visible to all org members; existing accounts migrated transparently.
Shipped and deployed (PR #8).
account.html?invite=…→ invitee sets password (or existing safe-to-move account joins) → lands in the org. Pending invites listable/revocable by admins.GET /v1/licensesis org-scoped (all members see keys); label management is admin-only. Rename viaPOST /v1/org/name.Acceptance covered by unit tests (register→org, invite→accept→member visibility, rails, migration); live invite-mail smoke pending alongside the #5 reset-mail test.