Appearance
Tenant management
IDVIZE is multi-tenant. Every object — application, account, identity, assessment, execution session — belongs to exactly one tenant, enforced by row-level security in PostgreSQL.
Listing tenants
Requires: tenants.manage permission (PlatformAdmin only).
bash
GET /v1/tenantsReturns every tenant with its name, domain, status and plan. Each tenant entry includes aggregate statistics (user count, application count) when available.
Creating a tenant
Requires: PlatformAdmin role, a valid API key, and a JWT.
bash
curl -X POST http://localhost:3001/v1/tenants \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_JWT" \
-d '{
"name": "Acme Corp",
"domain": "acme.com",
"plan": "enterprise"
}'The tenant is immediately usable. Creating a tenant also creates its first admin user. Users created under this tenant see only its data.
Tenant fields
| Field | Type | Description |
|---|---|---|
name | string | Display name |
domain | string | Primary email domain (used for user association) |
plan | enterprise | professional | trial | Commercial plan tier |
status | active | suspended | trial | Current lifecycle state |
slug | string | URL-safe identifier, derived from name |
Viewing a tenant
bash
GET /v1/tenants/:tenantIdReturns the tenant's details and statistics. Requires tenants.manage.
Any authenticated user can view their own tenant:
bash
GET /v1/tenants/meTenant settings
Each tenant has configurable settings that govern its security posture and operational limits:
bash
# View settings
GET /v1/tenants/me/settings
# Update settings (requires tenants.settings.update)
PATCH /v1/tenants/me/settings| Setting | Type | Description |
|---|---|---|
mfaRequired | boolean | Whether MFA is required for all users in this tenant |
sessionTimeoutSeconds | number | JWT session duration override |
allowedAuthProviders | string[] | Which authentication providers are permitted (local, oidc, saml) |
maxUsers | number | Maximum users allowed in the tenant |
maxApps | number | Maximum managed applications |
remediation | object | Remediation-specific settings |
Other tenant-level configuration
| Setting | Configured via | Purpose |
|---|---|---|
| Automation policy | Automation policy | Governs whether agents observe, recommend, require approval, or run autonomously for each control, risk tier and environment |
| Control baseline | Control baselines | The default set of controls required for each object type and risk tier |
| Commercial grants | API reference | Which product capabilities are available and their limits |
Tenant isolation
Tenant isolation is enforced at three layers:
- JWT claims. Every authenticated request carries a
tenantIdin the JWT. ThetenantContextmiddleware extracts it and makes it available to all downstream handlers. - PostgreSQL RLS. The application-pool connection sets
app.current_tenantviaSET LOCALinside every transaction. Row-level security policies on every tenant-scoped table filter reads and writes to the current tenant. - Static analysis. A CI governance ratchet (
check-tenant-scoping) scans every repository and query file to ensure no SQL query on a tenant-scoped table omits the tenant predicate.
There are currently 23 dedicated cross-tenant test files with over 200 probes that verify one tenant's data is invisible to another.
TIP
Tenant isolation is not an application-level convention — it is a database-level guarantee. Even a bug in a controller cannot read another tenant's data, because the PostgreSQL session variable restricts what the query can see.
Suspending a tenant
There is no explicit suspend endpoint. To suspend a tenant's execution capabilities while keeping assessment data intact:
- Suspend commercial grants. Set the tenant's commercial grants to
suspendedviaPUT /v1/commercial/grants/:id. Assessment (read-only) continues; execution (write) is blocked by the commercial gate. - Deactivate users. Set individual user statuses to
suspendedviaPATCH /v1/security/auth/users/:userId/statusto prevent sign-in.
Assessment data, audit logs and the full evaluation history are preserved regardless of tenant or user status. No data is deleted by suspension.