How to import many user accounts at the same time


#1

Hi, all:

I just installed the owncloud and I need to import the user accounts into the owncloud.

However, I found there is no way to import amount of user accounts in the same time in the web portal. Is that any possible way to do this? Now I have a XML file to store all the user accouts. The version of owncloud is 10.0.2.

Thank you.


#2

Can anyone help me this?
Cause I have got a huge number of users, I can not create them once a time.

Thank you.


#3

Recommend to use LDAP and import there. Alternatively you can use the provisioning API and write a script which does the provisioning for you.


#4

Thank you for your reply.

The API seems not support importing many users at the same time.

How to use LDAP to import? I am a fresh in computer. Can you guide me how to do it?

Thank you.


#5

Pure scripting approach:

export OC_PASS=initial_pass_alice
./occ user:add alice --display-name='Alice Cooper' --email='alice@cooper.net' --group=music --password-from-env
export OC_PASS=initial_pass_bob
./occ user:add bob --display-name='Bobby Brown' --email='bob@brown.net' --group=music --password-from-env

#6

Thank you for your reply and sorry for my late reply.

I am not sure that I understand your idea.(Sorry for my fresh in computer). Is that meaning I still need to type all usernames password email group in script? That is a long list..Maybe I misunderstand your suggestions.