cancel
Showing results for 
Search instead for 
Did you mean: 

How can one bulk create users?

cmoad_
Champ on-the-rise
Champ on-the-rise

Is there any possible way to create a bunch of users by using the automation api or another mechanism. The import information would include their email, username, password, and a single group in which they should be a part of.

1 ACCEPTED ANSWER

Julien_Carsique
Elite Collaborator
Elite Collaborator

Users are usually managed in a database or a LDAP.

Benjamin pointed you a first solution. There may be a lot of various ways.
Do you want to do it by programming, scripting or configuring? With what kind of source (file, SQL, form, ...)? Do you want to do it once or repeatedly, for initializing a server or regularly adding users on a running server?

Depending on how/where your users are currently managed, you can also simply feed Nuxeo with that source of users and groups.
/> See Directories and Vocabularies, Authentication, users and groups, UserManager and SQLDirectoryFactory which can be provided a dataFile to initially populate the users or groups table.

For running benchmarks, tests, trainings, ..., there's also the easy use of "virtual" users.

View answer in original post

4 REPLIES 4

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Not direclty, I think.

But I'm sure create your own operation can be really easy that takes a CSV file.

  • Create an empty project with Nuxeo IDE.
  • Create an empty operation operation in it that takes a Blob as input
  • parse the CSV and create a SQL query that populates the table user (if you kept the default configuration.

You can use maybe org.nuxeo.ecm.directory.sql.SQLHelper#loadData.

Hope this will help you.

Julien_Carsique
Elite Collaborator
Elite Collaborator

Users are usually managed in a database or a LDAP.

Benjamin pointed you a first solution. There may be a lot of various ways.
Do you want to do it by programming, scripting or configuring? With what kind of source (file, SQL, form, ...)? Do you want to do it once or repeatedly, for initializing a server or regularly adding users on a running server?

Depending on how/where your users are currently managed, you can also simply feed Nuxeo with that source of users and groups.
/> See Directories and Vocabularies, Authentication, users and groups, UserManager and SQLDirectoryFactory which can be provided a dataFile to initially populate the users or groups table.

For running benchmarks, tests, trainings, ..., there's also the easy use of "virtual" users.

I was hoping to have a scripted way to accomplish this, but given that does not exist it seems to make more sense to have another tool for managing users. I am already running a multidirectory with a mix of LDAP and local SQL users. It seems pointing to another CMS like a Drupal install could be useful for something like what I need. That would enable users to sign up themselves and manage their passwords. Also, admins could approve the accounts and assign them to roles easily. I might explore exposing a Drupal database of users to Nuxeo.

Please edit your post if you're looking for more features about users management

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.