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?

How to generate

  1. Create accounts with UUID ids.
  2. Scope rows by account_id in every query.
  3. Enforce at the data-access layer, not just the UI.

Use Cases

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