FeatureFuel
2

Allow reason/description (and ban metadata) when banning a user so audit logs capture why

Source: supabase/supabase#54087 · opened by @nicoabie
Problem Admin ban is only: That sets auth.users.banned_until, but the audit entry is a generic user_modified with traits like user_id / user_email / user_phone. There is no way to pass why the user was banned (or unbanned), so compliance / support / security review can’t rely on Auth audit alone. Apps that need ban reason/description today keep a parallel history table (e.g. reason SELFBAN, MFA_VERIFICATION_ATTEMPTS_EXCEEDED, plus free-text description). That duplicates Auth’s ban state and can diverge if GoTrue succeeds and the app’s history write fails (or the reverse). Proposal Extend admin user update (ban path) with optional fields, for example: When ban_duration is set (including "none"), include in the audit log payload / traits at least: • ban_duration (or resolved banned_until) • ban_reason (if provided) • ban_description (if provided) Ideally also a clearer action than generic user_modified, e.g. user_banned / use…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests