Skip to content

Tenant data export ​

Answer a data access request, or give a customer their data when they leave. One request produces a ZIP archive of everything the platform holds for one tenant.

API: POST /api/v1/console/applications/{applicationId}/tenants/{tenantId}/export

Who can run it: organization admins of the organization that owns the application (and platform staff with organization read access).

Confirm it is you ​

The request body must carry your current credential, the same step-up used for other sensitive account actions:

  • MFA enabled: { "code": "123456" } (authenticator code)
  • Otherwise: { "currentPassword": "..." }

The response is the ZIP itself. Nothing is kept on the server afterwards, so there is no download link to expire or to share by mistake. Each request is recorded in the audit log (privacy.tenant_export.requested and privacy.tenant_export.completed).

What is inside ​

FileContents
manifest.jsonExport id, time, who asked, each section with its row count and owner
tenant.jsonTenant profile
members.jsonMembers with id, email, display name and role
usage-meters.jsonCurrent usage meter values
usage-adjustments.ndjsonUsage adjustment history, one JSON record per line
audit-events.ndjsonAudit entries recorded against the tenant (action, time, actor, result). Change payloads are left out because they can hold other people's personal data
storage-objects.ndjsonUploaded files owned by the tenant: name, type, size and storage key. File bytes are not embedded, so large tenants stay manageable

Large sections are streamed row by row, so a tenant with a lot of history does not need a lot of memory.

What your application must add ​

The archive covers only data held by TenancyEngine. Anything your own application stores in its own database, or files kept outside platform storage, is yours to export. Add it to the response you send to the requester. manifest.json repeats this reminder in its isvOwnedData field.

Data about one person ​

A single user can export their own platform data from the account privacy page (POST /api/v1/console/privacy/export). Use the tenant export when the request covers a whole tenant.

TenancyEngine platform documentation