문제

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!

도움이 되었습니까?

해결책

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

다른 팁

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.

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

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top