(Note · · 5 min read)
Two people, one shared record, no idea who changed what
A household budget, a team's inventory, a shared client list. The data belongs to the group, the actions belong to individuals, and a product that models only the group cannot answer who did this — which is the first question asked when something looks wrong.
By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka
Separate the account from the person
One set of records, several members, each with their own sign-in. The common shortcut is one shared login, and it destroys attribution permanently: every action is by the same user, and nobody can be removed without changing a password everybody uses.
Record the actor on every entry, not just the owning account. That single column is what makes the history readable, and it cannot be reconstructed later.
Show who, beside what
In a shared book, the attribution is part of the content: who added this expense, who adjusted that stock count, who changed the budget. Putting it in a separate audit screen means it is never seen at the moment it answers a question.
An activity view — recent changes across the account, with names — turns out to be one of the most used screens in a shared product, because it is how members stay oriented without asking each other.
Expect simultaneous edits
Two people on two phones will edit the same record, and the usual implementation lets the second overwrite the first silently. Carry a version with the record and reject a write against a stale one, telling the user it changed rather than discarding their work.
Adding a new record almost never conflicts, which is why that path can stay simple. Editing shared records is where the care is needed, and it is also where offline behaviour becomes hardest.
Not every member should do everything
Shared does not mean equal. Viewing, adding, editing someone else's entry, inviting a member, removing a member and deleting the account are distinct capabilities, and the destructive ones deserve limiting to whoever is responsible for the account.
Keep it to a small number of roles — a few named bundles people can reason about — and check the permission on the server, with the interface merely reflecting it.
Invitation and removal need care
An invitation grants access to everything in the account, so it should be explicit about that, expire, be single-use, and be revocable before acceptance. An invitation link that works forever is an access grant with no end.
Removal has to be unambiguous: access ends immediately, and their entries remain with their attribution intact. Deleting someone's records when they leave rewrites the history of the account, and in a shared money or stock book the totals then stop reconciling.
Decide what members can see of each other
Shared records are visible to all members by definition, and that has consequences people may not anticipate — in a household book, everyone sees everyone's spending. That may be exactly the point, and it should be stated plainly rather than discovered.
Where some things should stay private, model it explicitly as a personal scope within the shared account. Half-shared is a product decision that has to exist in the data model; it cannot be added as an interface preference later.
Common questions
Why not just use one shared login?
Because it destroys attribution permanently — every action is by the same user, so nobody can answer who did this — and removing one person means changing a password everyone uses. Give each member their own sign-in and record the actor on every entry.
How should simultaneous edits be handled?
Carry a version with the record and reject writes against a stale one, telling the user the record changed rather than silently overwriting. Adding new records rarely conflicts; editing shared ones is where the care is needed.
Should all members have the same permissions?
No. Viewing, adding, editing another member's entry, inviting, removing and deleting the account are distinct capabilities, and the destructive ones belong to whoever is responsible. Keep roles few and check them on the server.
What happens to a member's records when they leave?
They remain, with attribution intact — deleting them rewrites the account's history and stops the totals reconciling in a shared money or stock book. Access must end immediately, but the record of what they did is part of the account's data.