Generally it’s problematical to prepare CSV format file with data to upload many users at once to GMail server for Google Apps. Here I’ll try to share a slight experience on how to do this…
- Select users information from appropriate database/table (see more details below)
- username
- first name
- last name
- password (how to generate automatically)
- Export data to Excel
- Delete the First colunm order number
- Save as Unicode Text or
- Open and Save as UTF-8 with BOA and .CSV extention
- Replace all Tab characters with Comma
- Upload File to Google
How to generate passwords? Keep in mind that the minimal length of password in Google is 6 symbols…
select t.username as "username",
t.first_name as "first name",
t.last_name as "last name",
round(p.str) as "password"
from table t, (select dbms_random.value(100000, 999999) str from dual) p
where .... -- if it's necessary
--dbms_random.string('L', 6) you can use this function instead of .value if you would like to generate character password