Admin archiving user accounts
After discussing with Zeynep GDPR compliance and the aspect of deleting unnecessary data, we discussed automating the archiving of accounts that have been inactive for some time (two years +). We first can send an email to users saying "if you do not login in to Genesys within the next 30 days, your account will be deleted + link to login". To be based on https://gitlab.croptrust.org/genesys-pgr/genesys-support/-/issues/151
We'll do this in steps:
-
#934 (closed): Change display of users from <Card to <Table (so we get select function and better sorting) -
genesys-server#646 (closed): Add endpoint to send emails to selected users, with a configurable message template -
#932 (closed): Add FAB with "Send email" that prompts for the template and then makes the API call to send messages
This will allow us to send official-(sandbox)-looking emails to users and then after a month we can go in and archive the old accounts:
-
#930 (closed) (this issue): Add to FAB a "Archive users" that calls API and archives the selected users
Archive users
Add to FAB a "Archive users" that calls API and archives the users selected in the table. I figure we have a multi-op API call for that already.