Acting on the right account
One person can belong to several accounts. How a request says which one, and why that is a separate check from authentication.
Authenticating tells you who is calling. Authorising tells you what they may touch. Versified keeps those apart on purpose: the token carries the person, and the request carries the account.
The two headers
accountid- MeaningThe account being acted on (
accountUuid) userid- MeaningThe person the action is about (
userUuid) - Equal
sub - MeaningThe owner acting on their own account — full access within their role
- Different
- MeaningStaff acting on an owner's account — allowed only when the two share a business
The identity always comes from the token's sub. The headers only *select* the account. A request that names an account the caller is not a member of is refused even though the sender holds a valid token.
What to check on every request
- 1Verify the token (signature, issuer, audience, expiry).
- 2Resolve the caller from
subagainst your own membership table. - 3Resolve the requested account and confirm the caller belongs to it.
- 4Check the specific privilege for the action — not just membership.
- 5Check time-boxed access, if the platform enforces access hours for that member.
Membership is not enough
A member with no privileges is a member. If your handler stops at step 3, a read-only staff account can perform owner actions.
Launch links
App Center appends the launchParams you declared for the membership — most applications send au (account) and uu (user). Treat them as *hints for which account to open*, never as proof: the application must still validate the session and the membership before rendering anything, and delete the parameters once they are read. See The launch flow.
Something here out of date or unclear?
The platform team answers integration questions directly.
