Prompt
I'm building a multi-tenant app and need isolated customer identity per tenant; what should I use?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
Use separate identity domains per tenant if you need strong isolation.
Best options
-
Separate user pools / directories per tenant
- Best for strict isolation and compliance.
- Each tenant has its own identities, passwords, MFA, policies, and lifecycle.
- Good when tenants have different auth requirements or branding.
-
Single identity store with tenant-scoped identities
- Users exist in one system but are always keyed by
tenant_id + user_id. - Easier operationally, but isolation is weaker and you must enforce it everywhere.
- Works if tenants are trusted and requirements are simpler.
- Users exist in one system but are always keyed by
What to use in practice
- If you mean “customer identity must be isolated and not shared across tenants”, use one IdP/user pool per tenant or at least separate identity realms/organizations.
- If you only need logical separation, use a shared IdP with tenant-aware claims and strictly enforce tenant boundaries in authorization.
Rule of thumb
- High isolation / enterprise / compliance → separate user directories/pools per tenant.
- Lower ops overhead / many small tenants → shared IdP with tenant scoping.
If you tell me your stack (Auth0, Cognito, Keycloak, Azure AD B2C, custom DB, etc.) and whether tenants need custom branding/MFA/policies, I can recommend the exact setup.