PREPROD
ReaderAuthor

piper

Tenant Site Access

A TenantSiteAccess record grants a tenant organization access to a specific monitoring site, specifying the `accessLevel` and recording who (`grantedBy`) authorized the access.

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

piper supports multi-tenant scenarios where a monitoring site may be shared across organizations — for example, a site owner and their environmental consultant may both need access to the same site's data. A TenantSiteAccess record controls this by linking a tenantId to a siteId with an accessLevel (a TenantSiteAccessLevel enum). The grantedBy field records which administrator authorized the access grant, providing accountability for who expanded site visibility beyond the primary owner.

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