Skip to content

Add audit event for user ban action

sameer shaik requested to merge audit-banevent into master

What does this MR do and why?

This MR partially addresses the feature request: #377620 (closed) - logs audit events for the following actions:

  • User Banned via Admin API
  • User Banned via UI/Admin Area

Screenshots or screen recordings

Screenshot_2023-03-29_at_6.17.54_PM

How to set up and validate locally

  1. Check the current behaviour in the master branch
  2. Ban a user account and notice that it does not logs the audit event
  3. Checkout the feature branch
  4. Ban the user and navigate to the Audit events page(http://localhost:3000/admin/audit_logs) and verify the audit event for the ban action.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by sameer shaik

Merge request reports