When deleting a user from Matomo, i want to either 1) delete all or 2) transfer their Email reports, Custom alerts, and Segments to another user
When deleting a user from Matomo, as a Super User, i want to transfer the deleted users' Email reports, Custom alerts, and Segments they created to another user, so that any other person relying on these emails/alerts/segments can continue their work unaffected.
Indeed when deleting a user:
- if deleted user had created segments shared with everyone, then we want to "transfer ownership" of these segments to another user -> Deletion process should ask who to transfer segments to. Or whether to "delete" all segments.
- similarly for email reports & custom alerts, if someone had created email reports (excluding any email report that was just "sent to themselves") -> Deletion process should ask who to transfer email reports to. Or whether to "delete" all email reports
- there may be more cases
- Note: segments that were not shared with all users could be just deleted (we assume that no other person needs that segment or it would have been shared already, and by deleting we save CPU)
- the segments/email reports/alerts could also be renamed and appended
(transferred from DELETED_USER_EMAIL_HERE)to make it extra clear they are not the original creator + To make it easy to find these things that were copied to eventually edit/delete or maintain them.
This would work along with https://github.com/matomo-org/matomo/issues/15164 but also could be done before or instead.
Thanks fore taking this topic up :-)
Having considered how this could work, I think this would require (and deserve) some UX design work: there’s quite a few options for quite a few steps here, and depending on the amount of users in the instance, how much of each thing the deleted user has, etc there could be quite a difference in how much screensize each step deserves.
As we're constrained on design and development hours, I think it will be quite a while before we can work on this. For the moment, let's wait until more requests for this feature come in.
This issue has been mentioned on Matomo forums. There might be relevant details there:
https://forum.matomo.org/t/comment-visualiser-lensemble-des-rapports-envoyes-par-e-mail-sur-matomo/53025/2