Add user deactivate service
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
How to set up and validate locally
- Deactivate a user and notice that the audit event is not logged within the master branch
- Checkout the feature branch
- Deactivate the user
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Emily Chang