Accounts and identity playbook
Rules for user accounts in web apps and SaaS. Sign-up, passkeys, recovery, sessions, roles, teams, staff access, deletion and business sign-on.
- Required 27
- Recommended 50
- Optional 3
- Avoid 1
An accounts playbook for any web app or SaaS where people sign up, sign in and work together. It covers the product side of accounts. That means how people join, prove who they are, get back in, share an organisation, and leave again.
This playbook owns the account rules, from password rules and resets to permission checks, record ownership and single sign-on. The adversarial testing playbook keeps password storage, login guessing, session cookies and tokens, and links back here. The website playbook has the addresses password managers look for, and its accessibility chapter covers sign-in forms.
Start with Sign-in methods. Choosing a provider or a library decides how much of the rest you build yourself. Services that must know who a person is should read Bank and government ID. Teams that sell to businesses should read Organisations and teams and Business sign-on and provisioning next.
Chapters
Sign-up
Ask for little, prove the email address and compare names in one canonical form. Check age with a parent's consent or a proof that reveals only the age.
- Required 4
- Recommended 3
Sign-in methods
Pick who runs sign-in, keep your own user IDs and put passkeys first. Provider logins, passwords, email links and TV sign-in each need their own care.
- Required 5
- Recommended 8
- Optional 2
Second factors and recovery
Offer the strongest second factors first and make recovery hard to abuse. Recovery codes, two factors each and a slow, loud last resort keep owners in.
- Required 1
- Recommended 10
- Avoid 1
Sessions and security activity
Show people where they are signed in, let them sign out anywhere, end sessions when access changes, and show each person their own security log.
- Required 3
- Recommended 7
Roles and permissions
Name permissions in code, map roles to them in one place, and test every role against every action. Then access stays right as the product grows.
- Required 6
- Recommended 2
Organisations and teams
Let organisations own the data, invite people safely, never leave a team without an owner, and cut access the moment someone leaves.
- Required 1
- Recommended 7
Support and staff access
Give staff their own accounts and check callers before changing anything. Support sees a customer's view only with a reason, a time limit and a trail.
- Required 2
- Recommended 2
Profile and account lifecycle
Change emails and names without losing anyone, let people export and delete their account themselves, and close unused accounts only after warnings.
- Required 2
- Recommended 3
Business sign-on and provisioning
Let each business customer bring its own identity provider, add and remove users through SCIM, and act on the security signals it sends.
- Required 1
- Recommended 7
Bank and government ID
When you must know who a person is, accept the ID they already hold, such as BankID or the EU wallet. Keep national ID numbers out of your data.
- Required 2
- Recommended 1
- Optional 1
Rules from regional law
Most rules here hold for every project. The rules below come from the law of one region. Follow them when your project serves people there.
European Union (EU)
- Required ACC-75 Get a parent's consent before relying on a child's consent
- Recommended ACC-72 Accept the EU Digital Identity Wallet where strong ID is needed
- Required ACC-74 Keep national ID numbers out of your data
- Required ACC-81 Keep identity document scans apart and delete them after the check
This is a lot to check. An Expert can check it for you.
Related playbooks
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/accounts">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.