Univention Bugzilla – Bug 47329
A tool which took the "old" record_uid and replace it with a new one
Last modified: 2023-06-23 13:15:52 CEST
Unfortunately it is sufficient to bulk update the record_uids. Regularly the primary key from the datasource changed and than it would be very helpful to have a tool which took the "old" record_uid and replace it with a new one. For example in a csv file with two columns (old & new).
Created attachment 9634 [details] migrate-recordUID I attached a short script which does something similar. It reads a CSV file and searches for firstname, lastname and birthday and replaces the recordUID with a new one from the CSV file. A dry-run is already implemented. Also it writes a result CSV.
Just as an idea: To make this work for users which don't have a recordUID so far (imported via old import), the tool also needs to create the unique-usernames and set ucsschoolUsernameNextNumber appropriately
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and UCS components may have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.