Skip to content

Add audit event for user unblock action

sameer shaik requested to merge audit-unblock into master

What does this MR do and why?

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

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

Screenshots or screen recordings

Screenshot_2023-03-24_at_1.48.26_PM

How to set up and validate locally

  1. Check the current behaviour in the master branch
  2. Block a user account and notice that it logs the audit event
  3. Unblock the same user and notice that the event is not logged
  4. Checkout the feature branch
  5. Block and unblock the user - Audit events page(http://localhost:3000/admin/audit_logs) shows both actions

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