Carry impersonation audit trail across org jumps

FixSecurityService
Shipped
June 15, 2026 at 8:19 PM UTC
Author
Kamo
Commit
094ac69

When the caller is already an impersonation session (a god admin acting as another member, carrying SUDO_MEMBER_ID), entering another org from /network minted the new session with no sudo id — losing who was really driving. Default sudoMemberId to the caller session's existing SUDO_MEMBER_ID so it propagates into the new session. The asSystemMember path still records the caller when there is no prior audit id, but prefers an existing one.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing