UUID Use Case
UUID Account ID
Whether you call it account, organisation, or workspace, a UUID id keeps tenants isolated and their identifiers unguessable.
Tenant isolationOpaquev4
Generated locally with the Web Crypto API — nothing leaves your browser.
What Is UUID Account ID?
- Every resource should be scoped to an account UUID, so a missing auth check cannot cross into another tenant.
- The UUID's unguessability means a typo or bug is unlikely to hit a real other account.
How to generate
- Create accounts with UUID ids.
- Scope rows by account_id in every query.
- Enforce at the data-access layer, not just the UI.
Use Cases
- SaaS workspaces.
- Agency client accounts.
- Reseller sub-tenants.
Code Examples
PostgreSQL
SELECT gen_random_uuid();Python
import uuid
id = uuid.uuid4()Frequently Asked Questions
Account UUID vs user UUID?
Separate them — an account owns many users; conflating the two breaks multi-user tenancy.
Do I need both account and user IDs in a URL?
Usually account is implicit from auth; only include user id when addressing a member.
Related tools
UUID v1 GeneratorUUID v3 GeneratorUUID v4 GeneratorUUID v5 GeneratorUUID v6 GeneratorUUID v7 GeneratorUUID v8 GeneratorBulk UUID GeneratorShort UUID GeneratorUUID ValidatorUUID FormatterUUID as a Primary KeyUUID Database IDUUID Foreign KeyUUID Shard KeyUUID Partition KeyUUID in a Composite KeyUUID Surrogate KeyUUID API KeyUUID Session TokenUUID Access TokenUUID Refresh TokenUUID Idempotency KeyUUID Request IDUUID Correlation IDUUID Trace IDUUID CSRF TokenUUID NonceUUID FilenameUUID Object KeyUUID S3 KeyUUID Upload IDUUID Cache KeyUUID Blob NameUUID Temp FileUUID User IDUUID Account IDUUID Customer IDUUID Device IDUUID Tenant IDUUID Client IDUUID Anonymous IDUUID Member IDUUID Message IDUUID Event IDUUID Job IDUUID Task IDUUID Queue Message IDUUID Transaction IDUUID Order IDUUID Invoice IDUUID Payment IDUUID Reset TokenUUID Verification TokenUUID Invite CodeUUID API SecretUUID Share LinkUUID Magic LinkUUID Node IDUUID Worker IDUUID Lock IDUUID Cluster IDUUID Test DataUUID Seed DataUUID FixtureUUID Mock IDUUID Placeholder IDUUID Sample ID