PREPROD
ReaderAuthor

piper

Site Tenant ID

`Site.tenantId` links every site record to its owning organization, ensuring that queries and API responses never leak data across tenants.

1 min read · 2 depth levelsstratum-piper · vdevMatches production
Everyday

The tenantId on a Site is set automatically when the site is created and cannot be changed. It is the primary isolation key — every query for wells, sampling events, and reports scopes first by tenantId to guarantee that one organization's Site records are never visible to another. You will not normally edit this field directly.

Technical section
Data model, API, and internals — visible to developers.
View as developer →
Was this helpful?