Export/import of users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
When I export users (select them in Users section of Administration and then get report and from report page download CSV file) and try to import them to another Mahara instance I get CSV file error.
This is probably due additional fields being exported even though they are not selected/checked by default at report page.
The import of users work only when additional fields are deleted from the CSV file and additional field "password" is added.
I believe the export shoud be changed so only selected fields would be exported.
Tested this on Mahara 19.10, but encountered the same behaviour in 19.04 and earlier ...
Attached is the first version of export CSV file. When I tried to import users from that file I got the following errors:
- The field name "quotapercent_
- The field name "lastlogin" is invalid, or you have more fields than your header row specifies
- The field name "probation" is invalid, or you have more fields than your header row specifies
After that I also got:
- A required field "password" has not been specified in the format line
which is reasonable since the CSV file should contain passwords for new users.
The field "password" should only be required when "internal" auth is selected. At other times, no internal Mahara password is needed. When accounts have already been created with internal auth, it is OK to leave the password out as people already have a password. That did work in the past.