# `MishkaCmsCore.Runtime.Resources.Changes.TenantFromSite`
[🔗](https://github.com/mishka-group/mishka_cms_core/blob/v0.0.1/lib/mishka_cms_core/runtime/resources/__changes/tenant_from_site.ex#L5)

Runs the action under the tenant of the record's `site_id`.

A master's create names the site it writes for, and the rest of the action (the tenant-scoped
validations, the version row) reads that site as its tenant. A record with no `site_id`, a global
one, is left as it is.

    create :master_create do
      change MishkaCmsCore.Runtime.Resources.Changes.TenantFromSite
    end

---

*Consult [api-reference.md](api-reference.md) for complete listing*
