Nicolas Raoul
Nicolas Raoul

Reputation: 60203

Batch-creation of Alfresco users

Is it possible to create Alfresco users in a "batch" way?
I mean, creating lots of users with a script or calling an API or something.
Thank you!

Upvotes: 1

Views: 2735

Answers (4)

Lothar Märkle
Lothar Märkle

Reputation: 21

The alfresco shell tools project allows the batch creation of Alfresco users:

https://code.google.com/p/alfresco-shell-tools/wiki/UsersAndGroupsFun#Create_a_new_user

It wraps the REST APIs mentioned in the other replies in an easy to use manner.

Upvotes: 1

Gagravarr
Gagravarr

Reputation: 48326

If you're using Alfresco Team, or a recent nightly build, then you can simply upload a CSV / Excel file of users and have them created for you. (It's in Swift too)

You'll find the link to do this in the admin console, and the webscript that backs this is http://localhost:8080/alfresco/service/api/people/upload (perform a GET to fetch the spreadsheet template, or a POST to upload the users)

Upvotes: 0

Florian
Florian

Reputation: 1281

There is a module for the Share admin console in the Share-Extras project which allows the creation of users from a CSV file. It can found here: http://code.google.com/p/share-extras/wiki/CreateBulkUsers

Upvotes: 3

Hugo Palma
Hugo Palma

Reputation: 3566

I think the easiest way to do that is to use the addPerson webscript. Just create a small application that calls the webscript (it's a normal HTTP POST request) with the user data you want.

http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Add_Person

Upvotes: 0

Related Questions