I want to * desactivate accounts created for import
So that I don't clutter my Tuleap with legacy accounts
Acceptance criteria Follow-up of story #8528
The purpose of this story is to desactivate accounts that were created "just for import"
At import, accounts are created with a reference to a DB table
Table format:
import date
who run the import
previous status (if any)
when the account was "restored" (this is useful to detect pending users if process abort with fatal error or segfault, etc)
If accounts already exists but not with an active status, they are temporarly activated (keep track in table) but password is "unactivated" (for instance add !! in front of hash)
After the import is completed or in case of catchable error (Exception)
Accounts that were created are turned off (Deleted)
Accounts that were temporarly activated are reset to their original state
Remove temporary option --force-create-all-users-active
There is a dedicated tool that can be run to identify if there are user accounts that should have been desactivated but that are not (to be run in case of crash for instance)
Attachments Empty
CC list Nouha Terzi (terzino), Salma MOAKHAR (moakhars), Denis PILAT (denis_pilat)