Forum .LRN Q&A: Bulk Upload Instructions need update?

In the Bulk Upload instructions it says:

"Your CSV file should have the following header titles: first_names,
last_name, email. It can also include the following optional headers:
id, type (student, professor, admin), access_level (full, limited),
guest (t for guest, f for non-guest)."

By looking at the User admin page one would think that the possible
values for type would be external, professor, staff, and student.
Shouldn't site_wide_admin have its own header title?

Collapse
Posted by Eduardo Palacio on
you can see this:

https://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0005id&topic_id=15&topic=dotLRN%20Development

but if you like to ty it, i do this script:

#!/bin/bash
echo "first_names, last_name, email, id, type, access_level, guest" > alumnos_list.txt

for i in `seq 3000 3100`
do
echo "alumno${i}, alumno${i}, mailto:alumno${i}@c2b.adactiv.com";, ${i}, student, limited, f >> alumnos_list.txt
done
exit 0

The OUTPUT:

first_names, last_name, email, id, type, access_level, guest
alumno3000, alumno3000, mailto:alumno3000@c2b.adactiv.com, 3000, student, limited, f
alumno3001, alumno3001, mailto:alumno3001@c2b.adactiv.com, 3001, student, limited, f
alumno3002, alumno3002, mailto:alumno3002@c2b.adactiv.com, 3002, student, limited, f
alumno3003, alumno3003, mailto:alumno3003@c2b.adactiv.com, 3003, student, limited, f
alumno3004, alumno3004, mailto:alumno3004@c2b.adactiv.com, 3004, student, limited, f
alumno3005, alumno3005, mailto:alumno3005@c2b.adactiv.com, 3005, student, limited, f
alumno3006, alumno3006, mailto:alumno3006@c2b.adactiv.com, 3006, student, limited, f
alumno3007, alumno3007, mailto:alumno3007@c2b.adactiv.com, 3007, student, limited, f
alumno3008, alumno3008, mailto:alumno3008@c2b.adactiv.com, 3008, student, limited, f
alumno3009, alumno3009, mailto:alumno3009@c2b.adactiv.com, 3009, student, limited, f
alumno3010, alumno3010, mailto:alumno3010@c2b.adactiv.com, 3010, student, limited, f
alumno3011, alumno3011, mailto:alumno3011@c2b.adactiv.com, 3011, student, limited, f
alumno3012, alumno3012, mailto:alumno3012@c2b.adactiv.com, 3012, student, limited, f
alumno3013, alumno3013, mailto:alumno3013@c2b.adactiv.com, 3013, student, limited, f
alumno3014, alumno3014, mailto:alumno3014@c2b.adactiv.com, 3014, student, limited, f
alumno3015, alumno3015, mailto:alumno3015@c2b.adactiv.com, 3015, student, limited, f

.........
.........

and it works very well, i have 100 new users.

Collapse
Posted by Arjun Sanyal on
peter: no, there shouldn't be a site-wide-admin header in the CSV for bulk uploads. Our reasoning is that site-wide-admin-ness is not a dotlrn-user-specific property, and adding it here would make it ripe for misuse. For an analogy, it would be like if there was a "-root" toggle to the "useradd" command in linux.

The link to toggle site-wide-admin-ness on the /admin/users page is there for convenience, since it appears that there's no UI in oacs to make someone a SWA. thinking about the link now, i think it might do more harm than good in the long run.