You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(web): add audit log entries for org membership changes
Adds three new audit actions covering the full membership lifecycle:
- org.member_added — fires from all five UserToOrg-creation paths
(initial owner, auto-add on signup, magic invite-link join, email
invite redemption, join-request approval). Two of those paths were
previously silent.
- org.member_removed — fires when an admin removes a member via the
Settings UI.
- org.member_left — fires when a user leaves the org themselves.
Each event uses a consistent (actor=user, target=user) shape so the
membership history can be reconstructed with a single query per state
transition. Existing audits (user.invite_accepted,
user.join_request_approved, user.owner_created) are preserved as
semantic detail.
0 commit comments