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

Writes the tenant the action runs under into the record's `site_id`, replacing whatever was sent.

A site user's create or update names no site of its own: the site is the one they are signed in
to. An action with no tenant (a master's) is left as it is, so the `site_id` it was given stays.

    create :create do
      change MishkaCmsCore.Runtime.Resources.Changes.SiteFromTenant
    end

---

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