Skip to content

Add a custom attribute when blocking or unblocking a user

Alex Buijs requested to merge add-custom-attirbute-when-blocking-users into master

What does this MR do and why?

When an admin blocks or unblocks a user either through the UI or via the API, we now insert or update a custom attribute for the user so that it is easier to find out for T&S who has blocked or unblocked the user.

Issue: #291068 (closed)

Screenshots or screen recordings

The users admin page custom attributes section:

Screenshot_2023-01-05_at_18.02.48

How to set up and validate locally

  1. Log in as admin and visit http://localhost:3000/admin/users
  2. Block a user
  3. Visit http://localhost:3000/admin/users?filter=blocked and unblock the user
  4. Visit the users page and scroll down to the custom attributes section

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 Alex Buijs

Merge request reports