notify_foreign_tenant_broadcast
What happened
Section titled “What happened”This notification can’t be sent to another organization. Please contact an administrator if you believe this is a mistake.
Technical background
Section titled “Technical background”AccessDeniedError: ctx.notify was called with to: { tenant } naming
a tenant other than the caller’s own (user.tenantId of the handler or
job context). The check runs before any delivery work; in a write handler
it throws synchronously instead of failing later in the afterCommit log.
Broadcast only to the caller’s tenant. To notify another tenant, run the notify from a job or handler whose context belongs to that tenant.