Files/Import Users
From EPrints
The script has been created in addition to the scripts import_eprints and import_subjects. Attention: This script does not check if the username already exists or if the usertype is valid.
You have to include the function http://files.eprints.org/32/01/create_new_user in the file /perl_lib/EPrints/User.pm
Drop import_users into "eprintsXX/bin/" and run:
import_users archiveid xmlfile
For an example of the xml file format run:
export_xml archiveid user
The exact structure may vary slightly depending on the user metadata you've configured in the ArchiveMetadataFieldsConfig?.pm.
The password field is always empty in the export user xml file. To import the password it have to be encrypted. Otherwise it would be in plaintext in the database, but nobody would like that.
New users are created in the tables "user" and "user_ordervalues_xx".
