Closed mzur closed 6 years ago
Using a plain user export is probably not a good idea since it contains hashed passwords, user names and their email addresses. Maybe implement a console command that returns an anonymized json containing only user UUIDs, hashed user names and hashed email addresses. This is the input format for the sync UUIDs command.
As there already were a few BIIGLE instance before we introduced the user UUIDs, there may be a few different UUIDs around for the same users. Implement a console command that takes a user export and synchronizes the user UUIDs in the database with it. The command should check user names and email addresses for exact matches and UUIDs for mismatches to guide through a merge process where the UUID in the database can be interactively replaced with the UUID in the user export.