Skip to content

Add user deactivate service

sameer shaik requested to merge deactivate-audit into master

What does this MR do and why?

This MR adds a new service for the deactivate action. It appears all other actions corresponding to the user model have their own service. This MR follows a similar convention and adds a new service for the deactivate action.

Additionally, an audit event is logged when the user is deactivated.

Screenshots or screen recordings

Screenshot_2023-04-17_at_11.59.57_AM

How to set up and validate locally

  1. Deactivate a user and notice that the audit event is not logged within the master branch
  2. Checkout the feature branch
  3. Deactivate the user
  4. Navigate to the Instance level audit events page and notice that the audit event is logged for the deactivate 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 Emily Chang (OOO, back 22nd July)

Merge request reports