Skip to content

unsafe_all_tenants_denied

This action isn’t allowed. Please contact an administrator if you believe this is a mistake.

AccessDeniedError: a handler or hook called ctx.queryProjection(qualifiedName, { unsafeAllTenants: true }) without being an r.systemScope() handler or declaring escapeHatch: { reason }.

Declare escapeHatch: { reason: "..." } on the write, query or stream handler (or on the r.hook(...) call, if the read happens inside a hook), or move the logic into an r.systemScope() feature.