Export/import of users

Bug #1855609 reported by Gregor Anželj
6
This bug affects 1 person
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_format" is invalid, or you have more fields than your header row specifies
- 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.

Revision history for this message
Gregor Anželj (gregor-anzelj) wrote :
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

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.

Changed in mahara:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.