# Tenant and organization isolation

**Test family:** `TEN`

- **TEN-001** Change tenant/account ID in path, query, body, header, cookie, websocket, import, and export; server derives authority independently.
- **TEN-002** Same object IDs/names in two tenants never cross in cache, search index, recent items, autocomplete, notifications, files, or AI context.
- **TEN-003** Switching organizations clears tenant-scoped state, pending requests, selected records, filters, and background subscriptions.
- **TEN-004** Invitation, SSO domain discovery, custom roles, vendor access, and support impersonation remain tenant-scoped.
- **TEN-005** Deleting a tenant handles shared integrations and global identity without affecting another tenant.

## Comprehensive per-item coverage

- **TEN-006** Exercise new, active, unverified, invited, suspended, locked, disabled, deleted, merged, and partially provisioned identities.
- **TEN-007** Use identifiers containing ASCII emoticons, emoji/ZWJ sequences, kaomoji, accents, mixed scripts, RTL, confusables, invisible characters, and boundary lengths.
- **TEN-008** Compare absent, unknown, malformed, valid, expired, revoked, replayed, and wrong-tenant credentials or identifiers without account enumeration.
- **TEN-009** Use UI, API, SSO, SCIM, invitation, import, admin, recovery, and migration paths; converge on one identity and policy model.
- **TEN-010** Test exact duplicates, case variants, normalization equivalents, alias collisions, recycled identifiers, and concurrent creation atomically.
- **TEN-011** Change username, email, phone, external subject, team, role, owner, and tenant; preserve links, history, authorization, and audit.
- **TEN-012** Change role or account state between rendering, authentication, challenge, and commit; reauthorize the final operation.
- **TEN-013** Attempt cross-user and cross-tenant lookup, suggestion, recovery, invite, export, cache, and error paths; reveal no hidden existence or data.
- **TEN-014** Brute-force, credential-stuff, enumerate, resend, and lock accounts within a safe test envelope; balance abuse resistance and denial-of-service risk.
- **TEN-015** Race login, logout, password reset, MFA reset, email change, suspension, deletion, and session refresh; define which security state wins.
- **TEN-016** Retry after timeout and replay old links, codes, tokens, signed requests, and callbacks; enforce expiry, audience, nonce, and one-time use.
- **TEN-017** Verify current and remembered sessions, trusted devices, refresh tokens, API tokens, and linked providers after each security-sensitive change.
- **TEN-018** Force identity provider outage, delayed email/SMS, expired admin session, partial provisioning, and rollback failure; provide a recoverable state.
- **TEN-019** Use keyboard, password managers, autofill, screen readers, zoom/reflow, translated errors, RTL, and mobile keyboards without weakening security.
- **TEN-020** Inspect URL, referrer, DOM, storage, clipboard, logs, traces, analytics, support tools, notifications, exports, and screenshots for credential or PII leakage.
- **TEN-021** Notify the right channels of sensitive changes without including secrets or actionable one-time credentials.
- **TEN-022** Record actor, authority, target, old/new security state, request/trace ID, time, source, and outcome in tamper-resistant audit.
- **TEN-023** Measure authentication, directory lookup, authorization, provisioning, and revocation latency at normal and supported load.
- **TEN-024** Delete, anonymize, retain, restore, export, and merge identities according to legal and product policy without orphaning ownership.
- **TEN-025** Test stale clients, clock skew, region failover, cache lag, and key rotation; fail closed for authorization while preserving recovery.

[Back to Authentication, people, and access index](../../auth-people-access.md)
